-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: switch from mocha and chai to the jest (#353)
- Loading branch information
1 parent
965ad8c
commit 2d37d1a
Showing
19 changed files
with
4,340 additions
and
2,213 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { Config } from '@jest/types'; | ||
|
||
const config: Config.InitialOptions = { | ||
coverageReporters: [ | ||
'text' | ||
], | ||
transform: { | ||
'^.+\\.(t|j)sx?$': '@swc/jest', | ||
}, | ||
roots: ['<rootDir>'], | ||
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
testTimeout: 10000, | ||
setupFiles: ['./test/jest.setup.ts'], | ||
collectCoverageFrom: [ | ||
'src/**' | ||
], | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.