Sharkey/packages/backend/jest.config.e2e.cjs
dakkar ae9daca4f2 only run 1 e2e test at a time
I think each test wipes the database at startup? but they share the
database, so running them in parallel feels like a bad idea in general
2025-06-10 16:17:17 +01:00

16 lines
470 B
JavaScript

/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/en/configuration.html
*/
const base = require('./jest.config.cjs')
module.exports = {
...base,
globalSetup: "<rootDir>/built-test/entry.js",
setupFilesAfterEnv: ["<rootDir>/test/jest.setup.ts"],
testMatch: [
"<rootDir>/test/e2e/**/*.ts",
],
maxConcurrency: 1, // these tests share a database, running more than one at a time is a bad idea
};