-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
0d9788f
commit 9f55ce7
Showing
10 changed files
with
6,764 additions
and
3,591 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
presets: [ | ||
["@babel/preset-env", { targets: { node: "current" } }], | ||
"@babel/preset-typescript", | ||
], | ||
}; |
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,30 @@ | ||
module.exports = { | ||
// The root of your source code, typically /src | ||
// `<rootDir>` is a token Jest substitutes | ||
roots: ["<rootDir>/src"], | ||
|
||
// Jest transformations -- this adds support for TypeScript | ||
// using ts-jest | ||
transform: { | ||
"^.+\\.tsx?$": "ts-jest", | ||
}, | ||
transformIgnorePatterns: ["node_modules/(?!antd)/"], | ||
|
||
// Runs special logic, such as cleaning up components | ||
// when using React Testing Library and adds special | ||
// extended assertions to Jest | ||
setupFilesAfterEnv: ["@testing-library/jest-dom"], | ||
|
||
// Test spec file resolution pattern | ||
// Matches parent folder `__tests__` and filename | ||
// should contain `test` or `spec`. | ||
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$", | ||
|
||
// Module file extensions for importing | ||
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node", "scss"], | ||
moduleNameMapper: { | ||
"\\.(css|scss)$": "identity-obj-proxy", | ||
}, | ||
resolver: undefined, | ||
testEnvironment: "jsdom", | ||
}; |
Oops, something went wrong.