Skip to content

Commit 0c6966e

Browse files
committed
chore: initial addition of insights and jest
1 parent ac6c20e commit 0c6966e

16 files changed

+6510
-698
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
dist
22
node_modules
33
ctrf
4+
coverage

ctrf-reports/ctrf-report.json

Lines changed: 517 additions & 0 deletions
Large diffs are not rendered by default.

jest.config.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
export default {
2+
preset: 'ts-jest/presets/default-esm',
3+
extensionsToTreatAsEsm: ['.ts'],
4+
testEnvironment: 'node',
5+
testMatch: [
6+
'**/__tests__/**/*.test.ts',
7+
'**/?(*.)+(spec|test).ts'
8+
],
9+
collectCoverageFrom: [
10+
'src/**/*.ts',
11+
'!src/**/*.d.ts'
12+
],
13+
coverageDirectory: 'coverage',
14+
coverageReporters: ['text', 'lcov', 'html'],
15+
transform: {
16+
'^.+\\.ts$': ['ts-jest', {
17+
useESM: true
18+
}]
19+
}
20+
};

0 commit comments

Comments
 (0)