13 lines
210 B
JavaScript
13 lines
210 B
JavaScript
|
export const createJestExecutionWatcher = () => {
|
||
|
let isExecuting = false;
|
||
|
|
||
|
beforeAll(() => {
|
||
|
isExecuting = true;
|
||
|
});
|
||
|
afterAll(() => {
|
||
|
isExecuting = false;
|
||
|
});
|
||
|
|
||
|
return () => isExecuting;
|
||
|
};
|