mirror of
https://github.com/facebook/react.git
synced 2026-02-23 20:23:02 +00:00
Codemod tests to waitFor pattern (2/?) (#26296)
This converts some of our test suite to use the `waitFor` test pattern, instead of the `expect(Scheduler).toFlushAndYield` pattern. Most of these changes are automated with jscodeshift, with some slight manual cleanup in certain cases. See #26285 for full context.
This commit is contained in:
@@ -17,6 +17,12 @@ const packages = readdirSync(packagesRoot).filter(dir => {
|
||||
if (dir.includes('react-devtools')) {
|
||||
return false;
|
||||
}
|
||||
if (dir === 'internal-test-utils') {
|
||||
// This is an internal package used only for testing. It's OK to read
|
||||
// from source.
|
||||
// TODO: Maybe let's have some convention for this?
|
||||
return false;
|
||||
}
|
||||
const packagePath = join(packagesRoot, dir, 'package.json');
|
||||
let stat;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user