Skip to content

Commit 8d42915

Browse files
committed
refactor: switch to CommonJs and Jest
1 parent 2585528 commit 8d42915

10 files changed

+4969
-2632
lines changed

.gitignore

-5
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,3 @@ dev.env
2020
.env
2121
.env.local
2222
.env.*.local
23-
24-
# Generated files
25-
*.js
26-
*.jsx
27-
*.map

.husky/pre-commit

-1
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
npm run readme

eslint.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/* eslint-disable filenames/match-exported */
2+
const eslintConfig = require('@krauters/eslint-config')
3+
4+
module.exports = eslintConfig

jest.config.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
preset: 'ts-jest',
3+
testEnvironment: 'node',
4+
testMatch: ['**/test/**/*.test.{ts,tsx}'],
5+
collectCoverage: true,
6+
coverageDirectory: 'coverage',
7+
coverageThreshold: {
8+
global: {
9+
lines: 60,
10+
statements: 60,
11+
functions: 60,
12+
branches: 60,
13+
},
14+
},
15+
}
16+

0 commit comments

Comments
 (0)