-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Puppeteer Tests for Google, Proton, and Skiff
- Loading branch information
1 parent
732b32b
commit 437ad63
Showing
25 changed files
with
2,438 additions
and
373 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 |
---|---|---|
|
@@ -8,3 +8,5 @@ calendar.pem | |
build/ | ||
node_modules/ | ||
dist/ | ||
.env | ||
tmp/ |
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 |
---|---|---|
@@ -1,6 +1,22 @@ | ||
/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */ | ||
const puppeteerPreset = require("jest-puppeteer/jest-preset"); | ||
|
||
module.exports = { | ||
verbose: true, | ||
testTimeout: 30_000, | ||
preset: "ts-jest", | ||
testEnvironment: "jsdom", | ||
testPathIgnorePatterns: ["/node_modules/", "/build/", "/dist/"], | ||
...puppeteerPreset, | ||
// testEnvironment: "jsdom", | ||
setupFilesAfterEnv: [...(puppeteerPreset.setupFilesAfterEnv || []), "./src/tests/jest.setup.ts"], | ||
transform: { | ||
"^.+\\.ts?$": [ | ||
"ts-jest", | ||
{ | ||
isolatedModules: true, | ||
}, | ||
], | ||
}, | ||
globals: { | ||
...puppeteerPreset.globals, | ||
}, | ||
testPathIgnorePatterns: ["/node_modules/", "/build/", "/dist/", "/tmp/"], | ||
}; |
Oops, something went wrong.