Skip to content

Commit

Permalink
Added jest along with a jest test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlabaj committed Nov 22, 2024
1 parent 7b07454 commit 640909a
Show file tree
Hide file tree
Showing 7 changed files with 6,527 additions and 1,729 deletions.
14 changes: 14 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type {Config} from 'jest';

const config: Config = {
preset: 'ts-jest',
testEnvironment: 'node',
transform: {
".ts": ["ts-jest", { tsconfig: "./tsconfig.jest.json" }]
},
roots: ['<rootDir>/src'],
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
};

export default config;
Loading

0 comments on commit 640909a

Please sign in to comment.