From cd20376f03212c91057c003bcb640ca9568e87e6 Mon Sep 17 00:00:00 2001 From: Andrew Clark Date: Sun, 12 Mar 2023 12:58:58 -0400 Subject: [PATCH] Remove internal `act` from DevTools e2e test (#26376) For various reasons some of the DevTools e2e tests uses our repo's private internal version of `act`. It should really just be using the public one. This converts one of the usages, because it was causing CI to fail. --- .../src/__tests__/storeComponentFilters-test.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/react-devtools-shared/src/__tests__/storeComponentFilters-test.js b/packages/react-devtools-shared/src/__tests__/storeComponentFilters-test.js index cb13f6cbb50a0..741589ee947c9 100644 --- a/packages/react-devtools-shared/src/__tests__/storeComponentFilters-test.js +++ b/packages/react-devtools-shared/src/__tests__/storeComponentFilters-test.js @@ -17,10 +17,9 @@ describe('Store component filters', () => { let legacyRender; let store: Store; let utils; - let internalAct; const act = async (callback: Function) => { - await internalAct(callback); + await React.unstable_act(callback); jest.runAllTimers(); // Flush Bridge operations }; @@ -34,7 +33,6 @@ describe('Store component filters', () => { React = require('react'); Types = require('react-devtools-shared/src/types'); utils = require('./utils'); - internalAct = require('internal-test-utils').act; legacyRender = utils.legacyRender; });