-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: allow opt-out of test.concurrent in integ tests (#19402)
The `test.concurrent` feature of `jest` immediately executes the test code in order to obtain a `Promise` that is checked as part of the test run. This means that the test handler code runs whether the test is included or not in the assessment, as controlled by the `-t` flag of jest. In order to allow integration tests to selectively run only a subset of the tests, we must hence not use `test.concurrent`, or else all test handlers run fully, leading to unwanted side effects. This is needed in order to be able to complete cdklabs/cdk-ops#1922. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
1 parent
e63a03d
commit 3866213
Showing
3 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters