diff --git a/src/utils/timeUtil.ts b/src/utils/timeUtil.ts index 6b381ebb..016df213 100644 --- a/src/utils/timeUtil.ts +++ b/src/utils/timeUtil.ts @@ -1,14 +1,4 @@ -import { act } from 'react-dom/test-utils'; - export function nextSlice(callback: () => void) { - if (process.env.NODE_ENV === 'test') { - Promise.resolve().then(() => { - act(() => { - callback(); - }); - }); - } else { - /* istanbul ignore next */ - Promise.resolve().then(callback); - } + /* istanbul ignore next */ + Promise.resolve().then(callback); }