main
ts 20 lines 376 Bytes
Raw
1 function useFoo({a}) {
2 let x = [];
3 x.push(a?.b.c?.d.e);
4 x.push(a.b?.c.d?.e);
5 return x;
6 }
7
8 export const FIXTURE_ENTRYPOINT = {
9 fn: useFoo,
10 params: [{a: null}],
11 sequentialRenders: [
12 {a: null},
13 {a: null},
14 {a: {}},
15 {a: {b: {c: {d: {e: 42}}}}},
16 {a: {b: {c: {d: {e: 43}}}}},
17 {a: {b: {c: {d: {e: undefined}}}}},
18 {a: {b: undefined}},
19 ],
20 };