-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
5,626 additions
and
497 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
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,6 @@ | ||
module.exports = { | ||
plugins: [ | ||
// Because Jest still doesn't support native ES modules - https://github.com/facebook/jest/issues/4842 | ||
'@babel/plugin-transform-modules-commonjs', | ||
], | ||
}; |
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,15 @@ | ||
module.exports = { | ||
testEnvironment: 'node', | ||
testMatch: [ | ||
'**/?(*.)test.ts', | ||
], | ||
moduleFileExtensions: [ | ||
'js', // not used directly, but MANDATORY | ||
'ts', // actually used | ||
], | ||
transform: { | ||
// Transform .ts files, and also .js ones generated by TypeScript, which scripts load - | ||
// https://github.com/microsoft/TypeScript/issues/18442#issuecomment-581738714 | ||
'^.+\\.(ts|js)$': 'babel-jest', | ||
}, | ||
}; |
Oops, something went wrong.