Skip to content

Commit

Permalink
Remove internal act from DevTools e2e test (#26376)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
acdlite authored Mar 12, 2023
1 parent 1317681 commit cd20376
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand All @@ -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;
});
Expand Down

0 comments on commit cd20376

Please sign in to comment.