-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
chore(parser): migrate from jest
to vitest
#10775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
JoshuaKGoldberg
merged 33 commits into
typescript-eslint:main
from
aryaemami59:chore/parser-vitest-migration
Apr 11, 2025
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
be86f32
Install `vitest`
aryaemami59 676a6e8
Rename `jest.config.js` to `vitest.config.mts`
aryaemami59 c4edfc3
chore(parser): migrate to `vitest`
aryaemami59 74c34cf
Update `vitest` to version 3.0.8
aryaemami59 3f4c980
Fix Vitest config
aryaemami59 fd48d75
Include `vitest.config.mts` in `tsconfig.spec.json`
aryaemami59 6a54a41
Add `vitest.config.mts` files to ESLint configuration
aryaemami59 7e0dbde
Use `defineProject` instead of `defineConfig`
aryaemami59 4a53aeb
Explicitly enable `resolveJsonModule`
aryaemami59 d1fde12
Use `.replace` instead of `.split`
aryaemami59 c23e047
Type check `vitest.config.mts` files using project references.
aryaemami59 5b31d33
Fix Vitest config
aryaemami59 d20e135
Fix `typecheck` task
aryaemami59 bc70a51
Update `vitest` to version 3.0.9
aryaemami59 158fe4e
Update `@vitest/eslint-plugin` to version 1.1.38
aryaemami59 5538fac
Update `vitest` to version 3.1.1
aryaemami59 793b981
Switch to `it.for`
aryaemami59 a548c5c
Update `@vitest/eslint-plugin` to version 1.1.39
aryaemami59 92e872d
Fix `knip` config
aryaemami59 94daf56
Update `vite` to version 6.2.5
aryaemami59 d0c9582
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 602bd41
Fix ESLint config
aryaemami59 091ca59
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 9927f4d
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 c2cf955
Update `vite` to version 6.2.6
aryaemami59 7eb7099
Update `@vitest/eslint-plugin` to version 1.1.40
aryaemami59 ec7ea6d
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 8a430b4
Fix `parser` tests
aryaemami59 7da9605
Update `@vitest/eslint-plugin` to version 1.1.42
aryaemami59 2a78738
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 d90fde4
Enable the new `vitest/prefer-describe-function-title` rule
aryaemami59 fe66cfd
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 eae45b1
Use `vitestPlugin.configs.env`
aryaemami59 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
{ | ||
"name": "parser", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"type": "library", | ||
"implicitDependencies": [], | ||
"projectType": "library", | ||
"root": "packages/parser", | ||
"sourceRoot": "packages/parser/src", | ||
"targets": { | ||
"lint": { | ||
"executor": "@nx/eslint:lint", | ||
"outputs": ["{options.outputFile}"] | ||
}, | ||
"test": { | ||
"executor": "@nx/vite:test" | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/parser/tests/lib/__snapshots__/services.test.ts.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.