|
15 | 15 | "build": "rollup -c rollup.config.ts --configPlugin swc3 --bundleConfigAsCjs",
|
16 | 16 | "prepublishOnly": "npm run build",
|
17 | 17 | "pretest": "npm run build",
|
18 |
| - "test": "mocha -r @swc-node/register 'test/index.ts'", |
19 |
| - "test:update": "mocha --update -r @swc-node/register 'test/index.ts'", |
| 18 | + "test": "mocha -r @swc-node/register --require mocha-expect-snapshot 'test/index.ts'", |
| 19 | + "test:update": "UPDATE_SNAPSHOT=all mocha -r @swc-node/register --require mocha-expect-snapshot 'test/index.ts'", |
20 | 20 | "prerelease": "pnpm run build && pnpm run lint",
|
21 | 21 | "release": "bumpp -r --all --commit \"release: %s\" --tag \"%s\""
|
22 | 22 | },
|
|
35 | 35 | "@babel/core": "^7.27.1",
|
36 | 36 | "@babel/plugin-syntax-jsx": "^7.27.1",
|
37 | 37 | "@babel/plugin-syntax-typescript": "^7.27.1",
|
| 38 | + "expect": "^29.7.0", |
38 | 39 | "loader-utils": "^3.3.1"
|
39 | 40 | },
|
40 | 41 | "devDependencies": {
|
41 | 42 | "@eslint-sukka/node": "^6.19.0",
|
| 43 | + "@jest/expect": "^29.7.0", |
42 | 44 | "@rspack/core": "^1.3.9",
|
43 | 45 | "@swc-node/register": "^1.10.10",
|
44 | 46 | "@swc/core": "^1.11.24",
|
45 | 47 | "@types/babel__core": "^7.20.5",
|
46 |
| - "@types/chai": "^4.3.20", |
47 | 48 | "@types/loader-utils": "^2.0.6",
|
48 | 49 | "@types/mocha": "^10.0.10",
|
49 | 50 | "@types/node": "^22.15.17",
|
50 | 51 | "babel-plugin-react-compiler": "^19.1.0-rc.1",
|
51 | 52 | "browserslist": "^4.24.5",
|
52 | 53 | "bumpp": "^10.1.0",
|
53 |
| - "chai": "^4.5.0", |
54 | 54 | "eslint": "^9.26.0",
|
55 | 55 | "eslint-config-sukka": "^6.19.0",
|
56 | 56 | "eslint-formatter-sukka": "^6.19.0",
|
57 | 57 | "memfs": "^5.0.0-next.1",
|
58 | 58 | "mocha": "^11.2.2",
|
59 |
| - "mocha-chai-jest-snapshot": "^1.1.6", |
| 59 | + "mocha-expect-snapshot": "^7.2.0", |
60 | 60 | "next": "^15.3.2",
|
61 |
| - "postcss": "^8.5.3", |
62 | 61 | "rimraf": "^6.0.1",
|
63 | 62 | "rollup": "^4.40.2",
|
64 | 63 | "rollup-plugin-dts": "^6.2.1",
|
|
75 | 74 | "neverBuiltDependencies": []
|
76 | 75 | },
|
77 | 76 | "overrides": {
|
78 |
| - "chai": "$chai", |
79 | 77 | "hasown": "npm:@nolyfill/hasown@latest"
|
80 | 78 | }
|
81 | 79 | }
|
0 commit comments