Skip to content

Commit bfbe787

Browse files
authored
chore: jest -> vitest (#146)
2 parents 36bfa40 + 0f04ea1 commit bfbe787

41 files changed

Lines changed: 873 additions & 2471 deletions

Some content is hidden

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

jest-base.mjs

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

jest.config.js

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

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66
"clean": "turbo clean",
77
"build": "turbo build",
88
"dev": "turbo dev",
9-
"test": "jest",
9+
"test": "vitest",
1010
"ci": "turbo lint build test",
1111
"version": "changeset version && pnpm install --frozen-lockfile=false",
1212
"publish": "turbo build --filter='!./examples/*' && pnpm publish -r && changeset tag"
1313
},
1414
"devDependencies": {
1515
"@changesets/changelog-github": "^0.6.0",
1616
"@changesets/cli": "2.30.0",
17+
"@vitest/coverage-v8": "^4.1.2",
1718
"eslint": "^9.23.0",
18-
"jest": "^29.7.0",
1919
"prettier": "^3.5.3",
20-
"ts-jest": "^29.3.0",
2120
"turbo": "^2.4.4",
22-
"typescript": "5.8.2"
21+
"typescript": "5.8.2",
22+
"vitest": "^4.1.2"
2323
},
2424
"packageManager": "pnpm@10.28.0"
2525
}

packages/astro-org/jest.config.js

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { mergeConfig } from 'vitest/config';
2+
import baseConfig from '../../vitest.config.base';
3+
4+
export default mergeConfig(baseConfig, {});

packages/orgast-util-to-string/jest.config.js

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

packages/orgast-util-to-string/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"clean": "rm -rf ./lib",
3333
"compile": "tsc -p tsconfig.build.json",
3434
"prepublishOnly": "npm run build",
35-
"test": "jest"
35+
"test": "vitest"
3636
},
3737
"bugs": {
3838
"url": "https://github.com/rasendubi/uniorg/issues"
@@ -41,8 +41,6 @@
4141
"@types/unist": "^3.0.2"
4242
},
4343
"devDependencies": {
44-
"@types/jest": "29.5.12",
45-
"jest": "29.7.0",
4644
"typescript": "5.4.5",
4745
"uniorg": "workspace:^1.3.0",
4846
"uniorg-parse": "workspace:^3.2.0"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { mergeConfig } from 'vitest/config';
2+
import baseConfig from '../../vitest.config.base';
3+
4+
export default mergeConfig(baseConfig, {});

packages/orgast-util-visit-ids/jest.config.js

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

packages/orgast-util-visit-ids/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,13 @@
3232
"clean": "rm -rf ./lib",
3333
"compile": "tsc -p tsconfig.build.json",
3434
"prepublishOnly": "npm run build",
35-
"test": "jest"
35+
"test": "vitest"
3636
},
3737
"bugs": {
3838
"url": "https://github.com/rasendubi/uniorg/issues"
3939
},
4040
"devDependencies": {
41-
"@types/jest": "29.5.12",
4241
"@types/unist": "3.0.2",
43-
"jest": "29.7.0",
4442
"typescript": "5.4.5",
4543
"uniorg-parse": "workspace:^3.2.0"
4644
},

0 commit comments

Comments
 (0)