-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
chore(eslint-plugin-internal): migrate from jest
to vitest
#10771
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 25 commits into
typescript-eslint:main
from
aryaemami59:chore/eslint-plugin-internal-vitest-migration
Mar 17, 2025
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
06ce4ac
Install `vitest`
aryaemami59 210ba5b
Rename `jest.config.js` to `vitest.config.mts`
aryaemami59 35a0d1d
chore(eslint-plugin-internal): migrate to `vitest`
aryaemami59 0375fa8
Remove `vitest/no-done-callback` as it is deprecated.
aryaemami59 73057f5
Fix Vitest config
aryaemami59 de5857b
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 1c6819f
Update `vitest` to version 3.0.8
aryaemami59 bd7d3f3
Fix Vitest config
aryaemami59 e595cf8
Include `vitest.config.mts` in `tsconfig.spec.json`
aryaemami59 8edaa18
Add `vitest.config.mts` files to ESLint configuration
aryaemami59 c3efc9e
Type check `vitest.config.mts` files using project references.
aryaemami59 21a6b84
Use `defineProject` instead of `defineConfig`
aryaemami59 139c934
Simplify `workspace` and `coverage.exclude`
aryaemami59 3156655
Explicitly enable `resolveJsonModule`
aryaemami59 5191e9b
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 1e2c8b2
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 d0b822d
Use `.replace` instead of `.split`
aryaemami59 82af72c
Fix `@nx/vite/plugin` usage in `nx.json`
aryaemami59 9663ca2
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 362cd3f
Update `@vitest/eslint-plugin` to version 1.1.37
aryaemami59 c60c84f
Fix Vitest config
aryaemami59 641440d
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 0dc29d0
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 ab86d18
Update `vite` to version 6.2.2
aryaemami59 c607191
Fix `typecheck` task
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 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": "eslint-plugin-internal", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"type": "library", | ||
"implicitDependencies": [], | ||
"projectType": "library", | ||
"root": "packages/eslint-plugin-internal", | ||
"sourceRoot": "packages/eslint-plugin-internal/src", | ||
"targets": { | ||
"lint": { | ||
"executor": "@nx/eslint:lint", | ||
"outputs": ["{options.outputFile}"] | ||
}, | ||
"test": { | ||
"executor": "@nx/vite:test" | ||
} | ||
} | ||
} |
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
kirkwaiblinger marked this conversation as resolved.
Show resolved
Hide resolved
|
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import * as path from 'node:path'; | ||
import { defineProject, mergeConfig } from 'vitest/config'; | ||
|
||
import { vitestBaseConfig } from '../../vitest.config.base.mjs'; | ||
import packageJson from './package.json' with { type: 'json' }; | ||
|
||
const vitestConfig = mergeConfig( | ||
vitestBaseConfig, | ||
|
||
defineProject({ | ||
root: import.meta.dirname, | ||
|
||
test: { | ||
dir: path.join(import.meta.dirname, 'tests'), | ||
name: packageJson.name.replace('@typescript-eslint/', ''), | ||
root: import.meta.dirname, | ||
}, | ||
}), | ||
); | ||
|
||
export default vitestConfig; |
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.