Skip to content

Commit 7bdc8fd

Browse files
authored
test: migrate some jest tests to rstest (#7932)
1 parent 47ee81f commit 7bdc8fd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+181
-726
lines changed

benchmark/bundle-diff/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"@modern-js/app-tools": "workspace:*",
2424
"@modern-js/tsconfig": "workspace:*",
2525
"@rsdoctor/rspack-plugin": "^1.3.11",
26-
"@types/jest": "^29.5.14",
2726
"@types/node": "^20",
2827
"@types/react": "^19.1.8",
2928
"@types/react-dom": "^19.1.6",

packages/cli/babel-preset/rstest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ import { withTestPreset } from '@scripts/rstest-config';
33
export default withTestPreset({
44
root: __dirname,
55
testEnvironment: 'node',
6+
setupFiles: ['@scripts/rstest-config/setup.ts'],
67
});

packages/cli/builder/rstest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ import { withTestPreset } from '@scripts/rstest-config';
33
export default withTestPreset({
44
root: __dirname,
55
testEnvironment: 'node',
6+
setupFiles: ['@scripts/rstest-config/setup.ts'],
67
});

packages/cli/builder/tests/__snapshots__/globalVars.test.ts.snap

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)