Skip to content

Commit cd20376

Browse files
authored
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.
1 parent 1317681 commit cd20376

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/react-devtools-shared/src/__tests__/storeComponentFilters-test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ describe('Store component filters', () => {
1717
let legacyRender;
1818
let store: Store;
1919
let utils;
20-
let internalAct;
2120

2221
const act = async (callback: Function) => {
23-
await internalAct(callback);
22+
await React.unstable_act(callback);
2423
jest.runAllTimers(); // Flush Bridge operations
2524
};
2625

@@ -34,7 +33,6 @@ describe('Store component filters', () => {
3433
React = require('react');
3534
Types = require('react-devtools-shared/src/types');
3635
utils = require('./utils');
37-
internalAct = require('internal-test-utils').act;
3836

3937
legacyRender = utils.legacyRender;
4038
});

0 commit comments

Comments
 (0)