Created
April 19, 2021 17:39
-
-
Save szerintedmi/fcbafd565ad9d580ed3dec6020d05996 to your computer and use it in GitHub Desktop.
jest.config.js : TypeScript with jest-environment-puppeteer
This file contains hidden or 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
/* Setup with ts-jest preset then overwrite the rest with jest-environment-puppeteer | |
* so we can use typescript for puppeteer tests. | |
*/ | |
module.exports = { | |
preset: "ts-jest", | |
globalSetup: "jest-environment-puppeteer/setup", | |
globalTeardown: "jest-environment-puppeteer/teardown", | |
testEnvironment: "jest-environment-puppeteer", | |
setupFilesAfterEnv: ["expect-puppeteer"], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment