refactor: move test dir to jest e2e config

This commit is contained in:
Joe Previte
2021-03-30 12:24:51 -07:00
parent 6b3db06c7a
commit bd55cb94be
5 changed files with 32 additions and 18 deletions

View File

@@ -12,6 +12,14 @@ const config: Config.InitialOptions = {
// 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",
},
},
},
},
testPathIgnorePatterns: ["/node_modules/", "/lib/", "/out/", "test/unit"],