Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
chore(typescript-eslint): migrate fromjest
tovitest
#10772
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
JoshuaKGoldberg merged 23 commits intotypescript-eslint:mainfromaryaemami59:chore/typescript-eslint-vitest-migrationMar 24, 2025
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
23 commits Select commitHold shift + click to select a range
8479c64
Install `vitest`
aryaemami59e66a225
Rename `jest.config.js` to `vitest.config.mts`
aryaemami59c5e83a5
chore(typescript-eslint): migrate to `vitest`
aryaemami59691a3ca
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami593609bed
Update `vitest` to version 3.0.8
aryaemami5965238e0
Remove `vitest/no-done-callback` as it is deprecated.
aryaemami591ed63ff
Fix Vitest config
aryaemami59fc07af1
Include `vitest.config.mts` in `tsconfig.spec.json`
aryaemami5969caafb
Add `vitest.config.mts` files to ESLint configuration
aryaemami59ca31d4e
Use `defineProject` instead of `defineConfig`
aryaemami5919ebf4b
Simplify `workspace` and `coverage.exclude`
aryaemami5956b2de3
Explicitly enable `resolveJsonModule`
aryaemami59de160a3
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59bb28ba4
Type check `vitest.config.mts` files using project references.
aryaemami5904eea20
Fix `@nx/vite/plugin` usage in `nx.json`
aryaemami5908bb1a8
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami590e75892
Update `@vitest/eslint-plugin` to version 1.1.37
aryaemami5961f27d1
Fix Vitest config
aryaemami590bc9868
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59ec10987
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59273e62a
Update `vite` to version 6.2.2
aryaemami59554e60c
Fix `typecheck` task
aryaemami59f1e0834
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
1 change: 1 addition & 0 deletionseslint.config.mjs
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
8 changes: 0 additions & 8 deletionspackages/typescript-eslint/jest.config.js
This file was deleted.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
10 changes: 5 additions & 5 deletionspackages/typescript-eslint/package.json
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
8 changes: 6 additions & 2 deletionspackages/typescript-eslint/project.json
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": "typescript-eslint", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"projectType": "library", | ||
"root": "packages/typescript-eslint", | ||
"sourceRoot": "packages/typescript-eslint/src", | ||
"targets": { | ||
"lint": { | ||
"executor": "@nx/eslint:lint", | ||
"outputs": ["{options.outputFile}"] | ||
}, | ||
"test": { | ||
"executor": "@nx/vite:test" | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletionpackages/typescript-eslint/tsconfig.build.json
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
9 changes: 7 additions & 2 deletionspackages/typescript-eslint/tsconfig.spec.json
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
21 changes: 21 additions & 0 deletionspackages/typescript-eslint/vitest.config.mts
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, | ||
root: import.meta.dirname, | ||
}, | ||
}), | ||
); | ||
export default vitestConfig; |
4 changes: 2 additions & 2 deletionsyarn.lock
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.
Uh oh!
There was an error while loading.Please reload this page.
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.