Skip to content

Commit 9e23423

Browse files
committed
add tests
1 parent e0cf534 commit 9e23423

File tree

18 files changed

+13056
-1441
lines changed

18 files changed

+13056
-1441
lines changed

.claude/settings.local.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(npm install:*)",
5+
"Bash(npm test:*)",
6+
"Bash(npm run test:coverage:*)",
7+
"Bash(node:*)"
8+
],
9+
"deny": []
10+
}
11+
}

jest.config.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
module.exports = {
2+
testEnvironment: 'node',
3+
coverageDirectory: 'coverage',
4+
collectCoverageFrom: [
5+
'**/*.js',
6+
'!coverage/**',
7+
'!jest.config.js',
8+
'!**/node_modules/**',
9+
'!migrations/**',
10+
'!config/**',
11+
'!tests/**',
12+
'!**/*.test.js',
13+
'!**/*.spec.js',
14+
'!bin/www'
15+
],
16+
testMatch: [
17+
'**/tests/**/*.test.js',
18+
'**/?(*.)+(spec|test).js'
19+
],
20+
testPathIgnorePatterns: [
21+
'/node_modules/'
22+
],
23+
coverageThreshold: {
24+
global: {
25+
branches: 95,
26+
functions: 95,
27+
lines: 99,
28+
statements: 99
29+
}
30+
},
31+
setupFilesAfterEnv: ['<rootDir>/tests/setup.js'],
32+
testTimeout: 10000
33+
};

0 commit comments

Comments
 (0)