Skip to content

Commit

Permalink
refactor: switch to CommonJs and Jest
Browse files Browse the repository at this point in the history
  • Loading branch information
coltenkrauter committed Sep 30, 2024
1 parent 2585528 commit 589cf43
Show file tree
Hide file tree
Showing 10 changed files with 4,969 additions and 2,632 deletions.
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,3 @@ dev.env
.env
.env.local
.env.*.local

# Generated files
*.js
*.jsx
*.map
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
npm run readme
4 changes: 4 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* eslint-disable filenames/match-exported */
const eslintConfig = require('@krauters/eslint-config')

module.exports = eslintConfig
16 changes: 16 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/test/**/*.test.{ts,tsx}'],
collectCoverage: true,
coverageDirectory: 'coverage',
coverageThreshold: {
global: {
lines: 60,
statements: 60,
functions: 60,
branches: 60,
},
},
}

Loading

0 comments on commit 589cf43

Please sign in to comment.