-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rewrite to TS and start using Jest (#115)
- Loading branch information
1 parent
58b44a9
commit 1d43660
Showing
15 changed files
with
7,573 additions
and
2,356 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
.vscode | ||
node_modules | ||
node_modules | ||
lib | ||
dist | ||
coverage |
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,26 @@ | ||
import type { Config } from '@jest/types'; | ||
|
||
const config: Config.InitialOptions = { | ||
coverageReporters: [ | ||
'json-summary', | ||
'lcov', | ||
'text' | ||
], | ||
preset: 'ts-jest', | ||
// The root of your source code, typically /src | ||
// `<rootDir>` is a token Jest substitutes | ||
roots: ['<rootDir>'], | ||
|
||
// Test spec file resolution pattern | ||
// Matches parent folder `__tests__` and filename | ||
// should contain `test` or `spec`. | ||
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$', | ||
// Module file extensions for importing | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
testTimeout: 10000, | ||
collectCoverageFrom: [ | ||
'src/**' | ||
], | ||
}; | ||
|
||
export default config; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.