Use default runtimeModule setting in Snap tests (#2940)

Lots of updated snapshots. The only updated code is resolving this TODO:

https://github.com/facebook/react-forget/blob/2b14805f98e47acdf4b83c7d078fe6727800b3f9/packages/snap/src/compiler.ts#L41
This commit is contained in:
Jan Kassens
2024-05-06 19:57:37 -04:00
parent 3708c36cbd
commit e2d47342be
737 changed files with 822 additions and 787 deletions
@@ -27,7 +27,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
import { makeObject_Primitives, mutate } from "shared-runtime";
function Component() {
@@ -18,7 +18,7 @@ function Component() {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component() {
const $ = useMemoCache(2);
let t0;
@@ -16,7 +16,7 @@ function component(a) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a) {
const $ = useMemoCache(2);
let x;
@@ -17,7 +17,7 @@ function component() {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component() {
const $ = useMemoCache(1);
let x;
@@ -22,7 +22,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component() {
const $ = useMemoCache(2);
let t0;
@@ -26,7 +26,7 @@ function mutate(x, y) {}
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function foo(cond) {
const $ = useMemoCache(2);
let a;
@@ -37,7 +37,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react"; // @enableReactiveScopesInHIR:false
import { c as useMemoCache } from "react/compiler-runtime"; // @enableReactiveScopesInHIR:false
import { Stringify, identity, makeArray, mutate } from "shared-runtime";
@@ -24,7 +24,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
/**
* This is a weird case as data has type `BuiltInMixedReadonly`.
* The only scoped value we currently infer in this program is the
@@ -19,7 +19,7 @@ function AllocatingPrimitiveAsDepNested(props) {
## Code
```javascript
import { c as useMemoCache } from "react"; // bar(props.b) is an allocating expression that produces a primitive, which means
import { c as useMemoCache } from "react/compiler-runtime"; // bar(props.b) is an allocating expression that produces a primitive, which means
// that Forget should memoize it.
// Correctness:
// - y depends on either bar(props.b) or bar(props.b) + 1
@@ -16,7 +16,7 @@ function AllocatingPrimitiveAsDep(props) {
## Code
```javascript
import { c as useMemoCache } from "react"; // bar(props.b) is an allocating expression that produces a primitive, which means
import { c as useMemoCache } from "react/compiler-runtime"; // bar(props.b) is an allocating expression that produces a primitive, which means
// that Forget should memoize it.
// Correctness:
// - y depends on either bar(props.b) or bar(props.b) + 1
@@ -33,7 +33,8 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { useEffect, useState, c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
import { useEffect, useState } from "react";
let someGlobal = false;
@@ -30,7 +30,8 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { useEffect, useState, c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
import { useEffect, useState } from "react";
let someGlobal = false;
@@ -40,7 +40,8 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { useEffect, useState, c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
import { useEffect, useState } from "react";
let someGlobal = { value: null };
@@ -12,7 +12,7 @@ function Component(props) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(2);
const ref = useRef(null);
@@ -22,7 +22,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function foo(a, b, c) {
const $ = useMemoCache(10);
let x;
@@ -17,7 +17,7 @@ function Component(props) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(7);
let t0;
@@ -17,7 +17,7 @@ function ArrayAtTest(props) {
## Code
```javascript
import { c as useMemoCache } from "react"; // arrayInstance.at should have the following effects:
import { c as useMemoCache } from "react/compiler-runtime"; // arrayInstance.at should have the following effects:
// - read on arg0
// - read on receiver
// - mutate on lvalue
@@ -18,7 +18,7 @@ function Component(props) {
## Code
```javascript
import { c as useMemoCache } from "react"; // x's mutable range should extend to `mutate(y)`
import { c as useMemoCache } from "react/compiler-runtime"; // x's mutable range should extend to `mutate(y)`
function Component(props) {
const $ = useMemoCache(2);
@@ -18,7 +18,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(3);
let t0;
@@ -14,7 +14,7 @@ function Component(props) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(8);
let t0;
@@ -21,7 +21,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(6);
let t0;
@@ -20,7 +20,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(3);
let t0;
@@ -20,7 +20,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(3);
let t0;
@@ -22,7 +22,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(3);
let t0;
@@ -22,7 +22,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(3);
let t0;
@@ -22,7 +22,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(1);
let t0;
@@ -19,7 +19,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(5);
let t0;
@@ -19,7 +19,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(t0) {
const $ = useMemoCache(7);
const [a, b] = t0;
@@ -20,7 +20,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(7);
let t0;
@@ -21,7 +21,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(11);
let t0;
@@ -19,7 +19,7 @@ function Component(props) {
## Code
```javascript
import { c as useMemoCache } from "react"; // arrayInstance.push should have the following effects:
import { c as useMemoCache } from "react/compiler-runtime"; // arrayInstance.push should have the following effects:
// - read on all args (rest parameter)
// - mutate on receiver
function Component(props) {
@@ -17,7 +17,7 @@ function Component() {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component() {
"use strict";
const $ = useMemoCache(3);
@@ -13,7 +13,7 @@ export default ErrorView;
```javascript
import { isForgetEnabled_Fixtures } from "ReactForgetFeatureFlag";
import { c as useMemoCache } from "react"; // @gating
import { c as useMemoCache } from "react/compiler-runtime"; // @gating
const ErrorView = isForgetEnabled_Fixtures()
? (error, _retry) => {
const $ = useMemoCache(2);
@@ -21,7 +21,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function useFoo() {
const $ = useMemoCache(1);
let t0;
@@ -21,7 +21,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(2);
let x;
@@ -20,7 +20,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function g(props) {
const $ = useMemoCache(2);
let a;
@@ -19,7 +19,7 @@ function useBar(props) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function useBar(props) {
const $ = useMemoCache(1);
let z;
@@ -20,7 +20,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function foo() {
const $ = useMemoCache(1);
let a;
@@ -20,7 +20,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function g() {
const $ = useMemoCache(1);
let x;
@@ -13,7 +13,7 @@ async function Component(props) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
async function Component(props) {
const $ = useMemoCache(2);
let x;
@@ -12,7 +12,7 @@ async function Component(props) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
async function Component(props) {
const $ = useMemoCache(4);
let t0;
@@ -23,7 +23,8 @@ function Component2(props) {
## Code
```javascript
import { useState, useMemo, c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
import { useState, useMemo } from "react";
function Component(props) {
const $ = useMemoCache(4);
@@ -24,8 +24,9 @@ function Component2(props) {
## Code
```javascript
import { c as useMemoCache } from "react/compiler-runtime";
import * as React from "react";
import { useState, useMemo, c as useMemoCache } from "react";
import { useState, useMemo } from "react";
function Component(props) {
const $ = useMemoCache(4);
@@ -22,7 +22,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
import * as React from "react";
import { calculateExpensiveNumber } from "shared-runtime";
@@ -30,7 +30,8 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { useMemo, c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
import { useMemo } from "react";
function Component(props) {
const $ = useMemoCache(2);
@@ -46,7 +46,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
import {
CONST_TRUE,
identity,
@@ -12,7 +12,7 @@ function Component(props) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(1);
let t0;
@@ -13,7 +13,7 @@ function Component(props) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(1);
let x;
@@ -13,7 +13,7 @@ function Component(props) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(1);
let x;
@@ -12,7 +12,7 @@ function Component(props) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(3);
let t0;
@@ -17,7 +17,7 @@ function Component(props) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Component(props) {
const $ = useMemoCache(4);
let t0;
@@ -18,7 +18,7 @@ function Component(props) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function foo() {}
function Component(props) {
@@ -24,7 +24,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a) {
const $ = useMemoCache(2);
let x;
@@ -27,7 +27,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a) {
const $ = useMemoCache(2);
let x;
@@ -45,7 +45,7 @@ function getNativeLogFunction(level) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function getNativeLogFunction(level) {
const $ = useMemoCache(2);
let t0;
@@ -31,7 +31,8 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { useRef, c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
import { useRef } from "react";
import { addOne } from "shared-runtime";
function useKeyCommand() {
@@ -22,7 +22,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a) {
const $ = useMemoCache(2);
let z;
@@ -25,7 +25,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a) {
const $ = useMemoCache(2);
let z;
@@ -21,7 +21,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a) {
const $ = useMemoCache(4);
let t0;
@@ -26,7 +26,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
import { mutate } from "shared-runtime";
function component(foo, bar) {
@@ -20,7 +20,7 @@ function component(foo, bar) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(foo, bar) {
const $ = useMemoCache(3);
let x;
@@ -26,7 +26,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
const { mutate } = require("shared-runtime");
function component(foo, bar) {
@@ -20,7 +20,7 @@ function component(foo, bar) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(foo, bar) {
const $ = useMemoCache(3);
let x;
@@ -26,7 +26,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
const { mutate } = require("shared-runtime");
function component(foo, bar) {
@@ -20,7 +20,7 @@ function component(foo, bar) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(foo, bar) {
const $ = useMemoCache(3);
let y;
@@ -26,7 +26,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
const { mutate } = require("shared-runtime");
function component(foo, bar) {
@@ -20,7 +20,7 @@ function component(foo, bar) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(foo, bar) {
const $ = useMemoCache(3);
let y;
@@ -24,7 +24,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
const { mutate } = require("shared-runtime");
function component(a) {
@@ -18,7 +18,7 @@ function component(a) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a) {
const $ = useMemoCache(2);
let y;
@@ -24,7 +24,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
const { mutate } = require("shared-runtime");
function component(a) {
@@ -18,7 +18,7 @@ function component(a) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a) {
const $ = useMemoCache(2);
let y;
@@ -25,7 +25,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
import { mutate } from "shared-runtime";
function component(a) {
@@ -19,7 +19,7 @@ function component(a) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a) {
const $ = useMemoCache(2);
let y;
@@ -25,7 +25,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
const { mutate } = require("shared-runtime");
function component(a) {
@@ -19,7 +19,7 @@ function component(a) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a) {
const $ = useMemoCache(2);
let y;
@@ -24,7 +24,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a, b) {
const $ = useMemoCache(5);
let t0;
@@ -23,7 +23,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a, b) {
const $ = useMemoCache(2);
let t0;
@@ -22,7 +22,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a) {
const $ = useMemoCache(2);
let y;
@@ -24,7 +24,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a, b) {
const $ = useMemoCache(3);
let z;
@@ -24,7 +24,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
const { mutate } = require("shared-runtime");
function component(a) {
@@ -18,7 +18,7 @@ function component(a) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a) {
const $ = useMemoCache(2);
let y;
@@ -21,7 +21,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a) {
const $ = useMemoCache(4);
let t0;
@@ -23,7 +23,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function bar(a) {
const $ = useMemoCache(2);
let y;
@@ -24,7 +24,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function bar(a) {
const $ = useMemoCache(2);
let y;
@@ -27,7 +27,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function bar(a, b) {
const $ = useMemoCache(3);
let y;
@@ -28,7 +28,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function bar(a, b) {
const $ = useMemoCache(3);
let y;
@@ -23,7 +23,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function bar(a) {
const $ = useMemoCache(2);
let y;
@@ -24,7 +24,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function bar(a) {
const $ = useMemoCache(2);
let y;
@@ -22,7 +22,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function bar(a) {
const $ = useMemoCache(2);
let y;
@@ -24,7 +24,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function bar(a) {
const $ = useMemoCache(2);
let y;
@@ -22,7 +22,7 @@ function component(a, b) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a, b) {
const $ = useMemoCache(7);
let z;
@@ -22,7 +22,7 @@ function component(a, b) {
## Code
```javascript
import { c as useMemoCache } from "react"; // @debug
import { c as useMemoCache } from "react/compiler-runtime"; // @debug
function component(a, b) {
const $ = useMemoCache(5);
let t0;
@@ -22,7 +22,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a) {
const $ = useMemoCache(2);
let t;
@@ -18,7 +18,7 @@ function Foo(props) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function Foo(props) {
const $ = useMemoCache(2);
let t0;
@@ -19,7 +19,7 @@ function component({ mutator }) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(t0) {
const $ = useMemoCache(7);
const { mutator } = t0;
@@ -18,7 +18,7 @@ function component(a, b) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a, b) {
const $ = useMemoCache(2);
let t0;
@@ -13,7 +13,7 @@ function component(a, b) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a, b) {
const $ = useMemoCache(6);
let t0;
@@ -16,7 +16,7 @@ function component(a) {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a) {
const $ = useMemoCache(1);
let t0;
@@ -18,7 +18,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function StoreLandingUnseenGiftModalContainer(a) {
const $ = useMemoCache(2);
let t0;
@@ -24,7 +24,7 @@ export const FIXTURE_ENTRYPOINT = {
## Code
```javascript
import { c as useMemoCache } from "react";
import { c as useMemoCache } from "react/compiler-runtime";
function component(a) {
const $ = useMemoCache(4);
let t0;

Some files were not shown because too many files have changed in this diff Show More