Skip to content

Commit 3068ad0

Browse files
committed
chore: add unit test framework
1 parent 02aad6a commit 3068ad0

File tree

4 files changed

+5572
-2225
lines changed

4 files changed

+5572
-2225
lines changed

jest.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export default {
2+
preset: 'ts-jest',
3+
testEnvironment: 'node',
4+
extensionsToTreatAsEsm: ['.ts'],
5+
moduleNameMapper: {
6+
'^(\\.{1,2}/.*)\\.js$': '$1',
7+
},
8+
transform: {
9+
'^.+\\.(ts|tsx)$': ['ts-jest', {
10+
useESM: true,
11+
}],
12+
},
13+
testMatch: [
14+
'**/tests/**/*.test.ts',
15+
],
16+
};

0 commit comments

Comments
 (0)