Skip to content

Commit b319a6e

Browse files
committed
feat: add typeorm with tests
1 parent effb05c commit b319a6e

File tree

6 files changed

+1437
-63
lines changed

6 files changed

+1437
-63
lines changed

jest.config.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ module.exports = {
99
coverageReporters: ['lcov', 'text', 'html'],
1010
collectCoverageFrom: [
1111
'<rootDir>/src/**/*.{ts,js}',
12-
'!<rootDir>/src/index.{ts,js}'
12+
'!<rootDir>/src/index.{ts,js}',
13+
'!<rootDir>/src/database/*.{ts,js}',
1314
],
14-
// @ TODO: uncomment after implementing SQLite DB for tests
15-
// coverageThreshold: {
16-
// global: {
17-
// branches: 90,
18-
// functions: 90,
19-
// lines: 90,
20-
// statements: 90,
21-
// },
22-
// },
23-
testRegex: '(/tests/.*|(\\.|/)(test|spec))\\.(j|t)sx?$',
15+
coverageThreshold: {
16+
global: {
17+
branches: 90,
18+
functions: 90,
19+
lines: 90,
20+
statements: 90,
21+
},
22+
},
23+
testMatch: ["<rootDir>/tests/**/*.spec.ts", "<rootDir>/tests/**/*.test.ts"],
2424
clearMocks: true
2525
};

0 commit comments

Comments
 (0)