Convert ReactSuspenseWithNoopRenderer tests to use built-in cache (#20601)

* Remove `ms` prop from SuspenseWithNoop tests

Use `resolveText` instead.

* Migrate SuspenseWithNoop tests to built-in cache
This commit is contained in:
Andrew Clark
2021-01-19 14:38:54 -08:00
committed by GitHub
parent e0fd9e67fc
commit fb3e158a64
2 changed files with 320 additions and 353 deletions
File diff suppressed because it is too large Load Diff
+5
View File
@@ -84,6 +84,11 @@ function getTestFlags() {
...featureFlags,
...environmentFlags,
// FIXME: www-classic has enableCache on, but when running the source
// tests, Jest doesn't expose the API correctly. Fix then remove
// this override.
enableCache: __EXPERIMENTAL__,
},
{
get(flags, flagName) {