-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce
integration
test helper to DRY up integration tests
Previously, we'd manually return from blocks that were only ran in tests marked as `integration` tests, denoted by files that end in `*-integration.test.ts`. This lead to a bunch of duplication, as each block was still started, and we had to mark several blocks in those files with a piece of code to return early in the case of integration tests. This introduces an `integration` helper, which conditionally skips the entire suite based on wether or not the `INTEGRATION` env var is set.
- Loading branch information
Jurre Stender
committed
Oct 26, 2021
1 parent
2eef128
commit 7a16c29
Showing
4 changed files
with
14 additions
and
39 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
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