debian-mirror-gitlab/spec/frontend/__helpers__/jest_execution_watcher.js

13 lines
210 B
JavaScript
Raw Normal View History

2021-03-11 19:13:27 +05:30
export const createJestExecutionWatcher = () => {
let isExecuting = false;
beforeAll(() => {
isExecuting = true;
});
afterAll(() => {
isExecuting = false;
});
return () => isExecuting;
};