This sets a default timeout of 3 minutes on CLI integration tests. This is because these tests call into the CLI and execute queries, so these are expected to take a lot longer than the default 5 seconds. This allows us to remove all the individual `jest.setTimeout` calls with different values from the test files.
15 lines
445 B
TypeScript
15 lines
445 B
TypeScript
import type { Config } from "jest";
|
|
|
|
import baseConfig from "../jest.config.base";
|
|
|
|
const config: Config = {
|
|
...baseConfig,
|
|
runner: "<rootDir>/../jest-runner-installed-extensions.ts",
|
|
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
|
|
// CLI integration tests call into the CLI and execute queries, so these are expected to take a lot longer
|
|
// than the default 5 seconds.
|
|
testTimeout: 180_000, // 3 minutes
|
|
};
|
|
|
|
export default config;
|