Skip to content

Commit 640909a

Browse files
committed
Added jest along with a jest test.
1 parent 7b07454 commit 640909a

File tree

7 files changed

+6527
-1729
lines changed

7 files changed

+6527
-1729
lines changed

jest.config.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type {Config} from 'jest';
2+
3+
const config: Config = {
4+
preset: 'ts-jest',
5+
testEnvironment: 'node',
6+
transform: {
7+
".ts": ["ts-jest", { tsconfig: "./tsconfig.jest.json" }]
8+
},
9+
roots: ['<rootDir>/src'],
10+
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$',
11+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
12+
};
13+
14+
export default config;

0 commit comments

Comments
 (0)