-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Jest configuration and tests (#5)
* Update README * Update lint-staged Fixes a bug wherein prettier fails to scan package.json b/c of the hardcoded `parser`. * Add Jest configuration and a simple snapshot test * Add CI step, CHANGELOG * Restore esbuild which was accidentally removed when doing some dependency cleanup
- Loading branch information
1 parent
35a9b85
commit 9915a53
Showing
16 changed files
with
840 additions
and
2,210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
npm run lint:staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
'*.{js,ts}': ['eslint --cache --fix', 'prettier --write'], | ||
'*.{yml,md,json}': 'prettier --write', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Change Log | ||
|
||
## [v0.0.5](https://github.com/pi-base/dev/compare/v0.0.4...v0.0.5) | ||
|
||
- Add exported `jest` configuration | ||
- Add a basic `jest` snapshot test | ||
- Add CI step to testing workflow | ||
|
||
## [v0.0.4](https://github.com/pi-base/dev/compare/v0.0.3...v0.0.4) | ||
|
||
- Add initial `lint-staged` configuration | ||
|
||
## [v0.0.3](https://github.com/pi-base/dev/compare/v0.0.2...v0.0.3) | ||
|
||
- Add exported `eslint` configuration | ||
- Initial CD implementation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1 @@ | ||
module.exports = { | ||
bail: 10, | ||
clearMocks: true, | ||
coverageDirectory: 'coverage', | ||
coveragePathIgnorePatterns: ['/node_modules/'], | ||
coverageProvider: 'v8', | ||
errorOnDeprecated: true, | ||
moduleFileExtensions: ['js', 'ts'], | ||
notify: true, | ||
notifyMode: 'failure-change', | ||
resetMocks: true, | ||
roots: ['src'], | ||
testEnvironment: 'node', | ||
testMatch: ['**/*.test.ts'], | ||
testRunner: 'jest-circus/runner', | ||
transform: { | ||
'^.+\\.ts$': 'ts-jest', | ||
}, | ||
verbose: true, | ||
} | ||
module.exports = require('./src/jest') |
Oops, something went wrong.