-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run with Jest Circus when passing the JEST_CIRCUS env variable as 1 (#…
- Loading branch information
1 parent
0d5fcdc
commit c5994de
Showing
3 changed files
with
38 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow | ||
*/ | ||
|
||
/* eslint-disable jest/no-focused-tests */ | ||
|
||
const SkipOnJestCircus = { | ||
suite() { | ||
if (process.env.JEST_CIRCUS === '1') { | ||
fit('does not work on jest-circus', () => { | ||
console.warn('[SKIP] Does not work on jest-circus'); | ||
}); | ||
} | ||
}, | ||
|
||
test() { | ||
if (process.env.JEST_CIRCUS === '1') { | ||
console.warn('[SKIP] Does not work on jest-circus'); | ||
return true; | ||
} | ||
return false; | ||
}, | ||
}; | ||
|
||
module.exports = SkipOnJestCircus; |