Skip to content

Commit

Permalink
fix: switch from mocha and chai to the jest (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmatatjahu authored Oct 17, 2022
1 parent 965ad8c commit 2d37d1a
Show file tree
Hide file tree
Showing 19 changed files with 4,340 additions and 2,213 deletions.
20 changes: 20 additions & 0 deletions jest.config.ts
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;
Loading

0 comments on commit 2d37d1a

Please sign in to comment.