Last active
April 15, 2019 19:26
-
-
Save andrewconnell/aabdd3c8a6afd701e5908773de96b3f7 to your computer and use it in GitHub Desktop.
Jest basic configuration for SPFx projects
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
{ | |
"moduleFileExtensions": [ | |
"ts", | |
"tsx", | |
"js", | |
"json" | |
], | |
"moduleNameMapper": { | |
"\\.(css|scss)$": "identity-obj-proxy", | |
"^resx-strings/en-us.json": "<rootDir>/../node_modules/@microsoft/sp-core-library/lib/resx-strings/en-us.json" | |
}, | |
"rootDir": "../src", | |
"testMatch": [ | |
"**/src/**/*.spec.+(ts|tsx|js)" | |
], | |
"testURL": "http://localhost", | |
"transform": { | |
"^.+\\.(ts|tsx)$": "ts-jest" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment