-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create libs/test-utils-vitest (#5703)
* Create libs/test-utils-vitest Copies all files from libs/test-utils that rely on `jest` and migrate them to use `vitest` instead. This will enable any packages that currently use libs/test-utils to be migrated to vitest by using the vitest version of these utils. Eventually, when we're done migrating and there are no more jest tests, we can move these back into libs/test-utils, replacing the jest versions. * Regenerate CircleCI config
- Loading branch information
1 parent
8af4cd0
commit 8cc2151
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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,3 +1,3 @@ | ||
build | ||
coverage | ||
vitest.config.mts | ||
vitest.config.mts |
This file contains 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 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 { defineConfig } from 'vitest/config'; | ||
|
||
export default defineConfig({ | ||
test: { | ||
coverage: { | ||
thresholds: { | ||
lines: 84, | ||
branches: 79, | ||
}, | ||
provider: 'istanbul', | ||
include: ['src/**/*.ts'], | ||
exclude: [ | ||
'src/**/*.test.ts', | ||
'src/advance_timers.ts', | ||
'src/mock_of.ts', | ||
'src/mock_kiosk.ts', | ||
'src/mock_use_audio_controls.ts', | ||
], | ||
}, | ||
}, | ||
}); |