Skip to content

Commit

Permalink
updated jest and test synyax
Browse files Browse the repository at this point in the history
  • Loading branch information
mgc1194 committed Sep 27, 2023
1 parent ab2273b commit d35e111
Show file tree
Hide file tree
Showing 9 changed files with 4,788 additions and 8,016 deletions.
12,785 changes: 4,778 additions & 8,007 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
"devDependencies": {
"@babel/core": "^7.18.10",
"babel-loader": "^8.2.2",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"babel-plugin-transform-class-properties": "^6.24.1",
"@babel/preset-env": "^7.18.10",
"@babel/preset-react": "^7.18.6",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"html-webpack-plugin": "^5.5.0",
"jest": "^22.2.2",
"jest": "^29.7.0",
"prettier": "2.8.7",
"react": "^16.3.2",
"react-dom": "^16.3.2",
Expand Down
3 changes: 2 additions & 1 deletion test/integration/scripts.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const expect = require("expect");
import { expect } from "@jest/globals";
// const expect = require("expect");
const fs = require("fs");
const path = require("path");
const { spawnSync } = require("child_process");
Expand Down
2 changes: 1 addition & 1 deletion test/unit/plugins/compiler/betterPedanticEmphasis.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @fileoverview duplicate the tests in https://github.com/remarkjs/remark/pull/344
*/

const expect = require("expect");
import { expect } from "@jest/globals";
const processor =
require("../../../../src/redactableMarkdownProcessor").create();

Expand Down
2 changes: 1 addition & 1 deletion test/unit/plugins/parser/paragraph.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const expect = require("expect");
import { expect } from "@jest/globals";
const processor =
require("../../../../src/redactableMarkdownProcessor").create();

Expand Down
2 changes: 1 addition & 1 deletion test/unit/plugins/parser/resourceLink.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const expect = require("expect");
import { expect } from "@jest/globals";
const { resourceLink } = require("@code-dot-org/remark-plugins");

const processor =
Expand Down
2 changes: 1 addition & 1 deletion test/unit/plugins/parser/vocabularyDefinition.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const expect = require("expect");
import { expect } from "@jest/globals";
const { vocabularyDefinition } = require("@code-dot-org/remark-plugins");

const processor =
Expand Down
2 changes: 1 addition & 1 deletion test/unit/redactableMarkdownProcessor.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const expect = require("expect");
import { expect } from "@jest/globals";
const processor = require("../../src/redactableMarkdownProcessor").create();

describe("Standard Markdown", () => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/redactableProcessor.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const expect = require("expect");
import { expect } from "@jest/globals";
const Processor = require("../../src/redactableProcessor");

const { divclass } = require("@code-dot-org/remark-plugins");
Expand Down

0 comments on commit d35e111

Please sign in to comment.