@aws-cdk-testing/cli-integ
Version:
Integration tests for the AWS CDK CLI
28 lines (21 loc) • 903 B
JavaScript
const path = require('path');
const rootDir = path.resolve(__dirname, '..', 'tests', process.env.TEST_SUITE_NAME);
if (rootDir.includes('node_modules')) {
// Jest < 28 under no circumstances supports loading test if there's node_modules anywhere in the path,
// and Jest >= 28 requires a newer TypeScript version than the one we support.
throw new Error(`This package must not be 'npm install'ed (found node_modules in dir: ${rootDir})`);
}
module.exports = {
rootDir,
testMatch: [`**/*.integtest.js`],
moduleFileExtensions: ["js"],
testEnvironment: "node",
// Because of the way Jest concurrency works, this timeout includes waiting
// for the lock. Which is almost never what we actually care about. Set it high.
testTimeout: 2 * 60 * 60_000,
maxWorkers: 50,
reporters: [
"default",
["jest-junit", { suiteName: "jest tests", outputDirectory: "coverage" }]
]
};