-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
chore(rule-tester): migrate from jest
to vitest
#10779
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 47 commits into
typescript-eslint:main
from
aryaemami59:chore/rule-tester-vitest-migration
Apr 14, 2025
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
db12fb1
Install `vitest`
aryaemami59 544e61a
Rename `jest.config.js` to `vitest.config.mts`
aryaemami59 7b65a55
chore(rule-tester): migrate to `vitest`
aryaemami59 51d99f2
Update `vitest` to version 3.0.8
aryaemami59 d7e3feb
Fix Vitest config
aryaemami59 4b9c171
Include `vitest.config.mts` in `tsconfig.spec.json`
aryaemami59 fa21966
Add `vitest.config.mts` files to ESLint configuration
aryaemami59 f6263cb
Use `defineProject` instead of `defineConfig`
aryaemami59 72c75f8
Explicitly enable `resolveJsonModule`
aryaemami59 b307230
Use `.replace` instead of `.split`
aryaemami59 81741aa
Type check `vitest.config.mts` files using project references.
aryaemami59 c8a36bd
Update `@vitest/eslint-plugin` to version 1.1.37
aryaemami59 71ab57d
Fix Vitest config
aryaemami59 ca0865d
Fix `typecheck` task
aryaemami59 66907d4
Update `vitest` to version 3.0.9
aryaemami59 3bc6f30
Update `@vitest/eslint-plugin` to version 1.1.38
aryaemami59 d4ab35f
Update `vitest` to version 3.1.1
aryaemami59 d7e4bd2
Update `@vitest/eslint-plugin` to version 1.1.39
aryaemami59 0353dcb
Switch to `it.for`
aryaemami59 d9c3c03
Fix `knip` config
aryaemami59 9c96919
Update `vite` to version 6.2.5
aryaemami59 f70aacf
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 49f8cad
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 555c941
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 3942c10
Update `vite` to version 6.2.6
aryaemami59 e5d8061
Update `@vitest/eslint-plugin` to version 1.1.40
aryaemami59 918c658
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 47935a7
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 2274ba7
Update `@vitest/eslint-plugin` to version 1.1.42
aryaemami59 85bbc22
Enable the new `vitest/prefer-describe-function-title` rule
aryaemami59 2c516fe
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 1c0a994
Use `vitestPlugin.configs.env`
aryaemami59 138003f
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 b8e70f6
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 bf68c3c
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 7ec9338
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 aafbc86
Run `ast-spec:typecheck` during `postinstall`
aryaemami59 f1fddfd
Fix `ast-spec:test`
aryaemami59 930f64f
Try disabling remote cache
aryaemami59 99a1e3f
Try disabling remote cache
aryaemami59 5ed60b8
Update `typecheck` output path in `nx.json`
aryaemami59 cdd1b3c
Fix `vitest` coverage output when run with `nx`
aryaemami59 5965d19
Fix `rule-tester` tests
aryaemami59 1e60fc7
chore: remove downlevel-dts added in merge artifact
JoshuaKGoldberg 63099f8
Merge branch 'main'
JoshuaKGoldberg fa97476
Merge branch 'main'
JoshuaKGoldberg fcd36ce
Delete duplicates
JoshuaKGoldberg 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 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": "rule-tester", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"type": "library", | ||
"implicitDependencies": [], | ||
"projectType": "library", | ||
"root": "packages/rule-tester", | ||
"sourceRoot": "packages/rule-tester/src", | ||
"targets": { | ||
"lint": { | ||
"executor": "@nx/eslint:lint", | ||
"outputs": ["{options.outputFile}"] | ||
}, | ||
"test": { | ||
"executor": "@nx/vite:test" | ||
} | ||
} | ||
} |
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.