Skip to content

Commit e3d49ac

Browse files
committed
test: replace chai with jest/expect
1 parent 833a231 commit e3d49ac

File tree

4 files changed

+2098
-445
lines changed

4 files changed

+2098
-445
lines changed

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"prepublishOnly": "npm run clean && npm run test && npm run build",
2626
"clean": "rimraf ./dist ./test/temp",
2727
"build": "SWC_NODE_PROJECT=./tsconfig.json node -r @swc-node/register tools/build.ts",
28-
"test": "SWC_NODE_PROJECT=./tsconfig.json mocha -r @swc-node/register test/index.ts",
28+
"test": "SWC_NODE_PROJECT=./tsconfig.json mocha -r @swc-node/register -r mocha-expect-snapshot test/index.ts",
2929
"lint": "eslint --format sukka ."
3030
},
3131
"author": "",
@@ -45,18 +45,16 @@
4545
"@rollup/plugin-node-resolve": "^16.0.1",
4646
"@swc-node/register": "^1.10.10",
4747
"@swc/core": "^1.11.24",
48-
"@types/chai": "^4.3.20",
4948
"@types/mocha": "^10.0.10",
5049
"@types/node": "^22.15.18",
5150
"@types/which": "^3.0.4",
52-
"chai": "^4.5.0",
5351
"eslint": "^9.26.0",
5452
"eslint-config-sukka": "^6.20.0",
5553
"eslint-formatter-sukka": "^6.20.0",
5654
"fdir": "^6.4.4",
5755
"memdisk": "^1.2.1",
5856
"mocha": "^11.3.0",
59-
"mocha-chai-jest-snapshot": "^1.1.6",
57+
"mocha-expect-snapshot": "^7.2.0",
6058
"picocolors": "^1.1.1",
6159
"rimraf": "^6.0.1",
6260
"rollup": "^4.40.2",

pnpm-lock.yaml

Lines changed: 29 additions & 108 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)