Skip to content

Commit 43d9460

Browse files
feat: support creating bank transactions and contacts (#6)
* test: configure jest * feat: add tool to create contact * feat: add tool to create bank transactions * feat: add security sanitization * refactor: rename folder, remove console logs
1 parent b977519 commit 43d9460

14 files changed

+15531
-688
lines changed

jest.config.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import type { Config } from 'jest';
2+
3+
const config: Config = {
4+
preset: 'ts-jest',
5+
testEnvironment: 'node',
6+
extensionsToTreatAsEsm: ['.ts'],
7+
moduleNameMapper: {
8+
'^(\\.{1,2}/.*)\\.js$': '$1',
9+
},
10+
transform: {
11+
'^.+\\.tsx?$': [
12+
'ts-jest',
13+
{
14+
useESM: true,
15+
},
16+
],
17+
},
18+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
19+
testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
20+
verbose: true,
21+
testPathIgnorePatterns: ['/node_modules/', '/build/'],
22+
collectCoverageFrom: [
23+
'src/**/*.{js,jsx,ts,tsx}',
24+
'!src/**/*.d.ts',
25+
'!src/**/index.ts',
26+
],
27+
};
28+
29+
export default config;

0 commit comments

Comments
 (0)