Skip to content

Commit

Permalink
Merge pull request #9 from marchintosh94/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
marchintosh94 authored Mar 3, 2024
2 parents 709a876 + 94bdd42 commit d9f3d11
Show file tree
Hide file tree
Showing 20 changed files with 1,921 additions and 665 deletions.
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
npm test
npx lint-staged
10 changes: 10 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules
husky
coverage
dist
.github
assets
*.md
LICENSE
tsconfig.*
package*
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"semi": false,
"trailingComma": "none",
"singleQuote": true,
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"bracketSpacing": true,
"endOfLine": "lf"
}
22 changes: 17 additions & 5 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
import { type JestConfigWithTsJest } from 'ts-jest'
import { type JestConfigWithTsJest } from 'ts-jest'
import { defaults as tsjPreset } from 'ts-jest/presets'

const config: JestConfigWithTsJest = {
verbose: true,
transform: {
...tsjPreset.transform,
}
};
...tsjPreset.transform
},
collectCoverage: true,
coverageDirectory: 'coverage',
coverageProvider: 'v8',
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100
}
},
testEnvironment: 'node'
}

export default config
export default config
Loading

0 comments on commit d9f3d11

Please sign in to comment.