gitlab-org--gitlab-foss/spec/frontend/__helpers__/jest_execution_watcher.js

12 lines
210 B
JavaScript

export const createJestExecutionWatcher = () => {
let isExecuting = false;
beforeAll(() => {
isExecuting = true;
});
afterAll(() => {
isExecuting = false;
});
return () => isExecuting;
};