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(types): migrate fromjest
tovitest
#10776
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 34 commits intotypescript-eslint:mainfromaryaemami59:chore/types-vitest-migrationApr 15, 2025
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
34 commits Select commitHold shift + click to select a range
0d6e3d2
Install `vitest`
aryaemami59c07da99
Rename `jest.config.js` to `vitest.config.mts`
aryaemami59c58b12a
chore(types): migrate to `vitest`
aryaemami59995f754
Fix Vitest config
aryaemami59ba55aa0
Include `vitest.config.mts` in `tsconfig.spec.json`
aryaemami593a978b8
Explicitly enable `resolveJsonModule`
aryaemami59bf887f9
Use `.replace` instead of `.split`
aryaemami59941f4b0
Type check `vitest.config.mts` files using project references.
aryaemami59570bc20
Fix Vitest config
aryaemami5915a8168
Update `vitest` to version 3.1.1
aryaemami590f0c80a
Update `@vitest/eslint-plugin` to version 1.1.39
aryaemami59b9147ac
Fix `knip`
aryaemami596e15553
Update `vite` to version 6.2.5
aryaemami5900bc1e0
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59a7a5230
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami5930fdcc3
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59bc5539c
Update `vite` to version 6.2.6
aryaemami59ed30de4
Update `@vitest/eslint-plugin` to version 1.1.40
aryaemami59108e7fd
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami590f13f9b
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59dd2000c
Update `@vitest/eslint-plugin` to version 1.1.42
aryaemami59a8b3173
Enable the new `vitest/prefer-describe-function-title` rule
aryaemami5906d285b
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami5902094b2
Use `vitestPlugin.configs.env`
aryaemami59e2e0e5f
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami590a8e550
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami5943a973f
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami595d39138
Try disabling remote cache
aryaemami593fdbdba
Try disabling remote cache
aryaemami590c88312
Try disabling remote cache
aryaemami5903fff35
Run `ast-spec:typecheck` during `postinstall` script
aryaemami59f73f94d
Update `typecheck` output path in `nx.json`
aryaemami59aa8a887
Fix `vitest` coverage output when run with `nx`
aryaemami5920f7c25
Merge branch 'main'
JoshuaKGoldbergFile 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
5 changes: 4 additions & 1 deletionpackages/types/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
4 changes: 3 additions & 1 deletionpackages/types/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
20 changes: 20 additions & 0 deletionspackages/types/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,20 @@ | ||
import { defineConfig, mergeConfig } from 'vitest/config'; | ||
import { vitestBaseConfig } from '../../vitest.config.base.mjs'; | ||
import packageJson from './package.json' with { type: 'json' }; | ||
const vitestConfig = mergeConfig( | ||
vitestBaseConfig, | ||
defineConfig({ | ||
root: import.meta.dirname, | ||
test: { | ||
name: packageJson.name.replace('@typescript-eslint/', ''), | ||
root: import.meta.dirname, | ||
passWithNoTests: true, | ||
}, | ||
}), | ||
); | ||
export default vitestConfig; |
2 changes: 2 additions & 0 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
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.