Skip to content

Commit 21aa421

Browse files
committed
chore: print message if tests run concurrently
1 parent 7be9068 commit 21aa421

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/@aws-cdk-testing/cli-integ/lib/integ-test.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export interface TestContext {
1010
log(s: string): void;
1111
};
1212

13+
if (process.env.JEST_TEST_CONCURRENT === 'true') {
14+
process.stderr.write('ℹ️ JEST_TEST_CONCURRENT is true: tests will run concurrently and filters have no effect!');
15+
}
16+
1317
/**
1418
* A wrapper for jest's 'test' which takes regression-disabled tests into account and prints a banner
1519
*/
@@ -18,7 +22,6 @@ export function integTest(
1822
callback: (context: TestContext) => Promise<void>,
1923
timeoutMillis?: number,
2024
): void {
21-
2225
// Integ tests can run concurrently, and are responsible for blocking
2326
// themselves if they cannot. Because `test.concurrent` executes the test
2427
// code immediately, regardles of any `--testNamePattern`, this cannot be the

0 commit comments

Comments
 (0)