code-server-2/test/jest.e2e.config.ts

38 lines
1.1 KiB
TypeScript
Raw Normal View History

2021-03-09 23:35:34 +00:00
// jest.config.ts
import type { Config } from "@jest/types"
const config: Config.InitialOptions = {
2021-03-30 17:30:38 +00:00
preset: "jest-playwright-preset",
2021-03-09 23:35:34 +00:00
transform: {
"^.+\\.ts$": "<rootDir>/node_modules/ts-jest",
},
globalSetup: "<rootDir>/utils/globalSetup.ts",
testEnvironmentOptions: {
"jest-playwright": {
// TODO enable on webkit as well
// waiting on https://github.com/playwright-community/jest-playwright/issues/659
browsers: ["chromium", "firefox"],
// If there's a page error, we don't exit
// i.e. something logged in the console
exitOnPageError: false,
contextOptions: {
recordVideo: {
dir: "./test/e2e/videos",
},
},
},
},
2021-03-16 21:43:29 +00:00
testPathIgnorePatterns: ["/node_modules/", "/lib/", "/out/", "test/unit"],
2021-03-09 23:35:34 +00:00
testTimeout: 30000,
modulePathIgnorePatterns: [
"<rootDir>/../lib/vscode",
"<rootDir>/../release-packages",
"<rootDir>/../release",
"<rootDir>/../release-standalone",
"<rootDir>/../release-npm-package",
"<rootDir>/../release-gcp",
"<rootDir>/../release-images",
],
}
export default config