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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
210 B
JavaScript
Raw Normal View History

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