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 authored and GitHub committed 2021-01-19 14:38:54 -08:00
1 parent e0fd9e67fc
commit fb3e158a64
2 files changed
+320 -353

No files matched your search

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) {