-
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.
chore: skip tests for github actions
conditionally skip middleware/tooBusy and utils/safeServerShutdown for CI pipeline tests.
- Loading branch information
1 parent
72ba26a
commit 0e07ad5
Showing
5 changed files
with
20 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* mocha BDD tests with boolean pre-condition | ||
*/ | ||
|
||
const noop = () => {} | ||
|
||
export const describeBool = (trueish) => trueish ? describe : describe.skip | ||
describeBool.only = (trueish) => trueish ? describe.only : noop | ||
describeBool.skip = (trueish) => describe.skip // eslint-disable-line no-unused-vars | ||
|
||
export const itBool = (trueish) => trueish ? it : it.skip | ||
itBool.only = (trueish) => trueish ? it.only : noop | ||
itBool.skip = (trueish) => it.skip // eslint-disable-line no-unused-vars |
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