[compiler] Support for non-declatation for in/of iterators #625
compiler_playground.yml
on: push
Test playground
3m 52s
Annotations
1 error, 1 warning, and 1 notice
[chromium] › page.spec.ts:125:7 › directives work: function-scope-beats-module-scope:
compiler/apps/playground/__tests__/e2e/page.spec.ts#L141
1) [chromium] › page.spec.ts:125:7 › directives work: function-scope-beats-module-scope ──────────
Error: Snapshot comparison failed:
function TestComponent(t0) {
"use memo";
const $ = _c(2);
const { x } = t0;
let t1;
if ($[0] !== x) {
t1 = <Button>{x}</Button>;
$[0] = x;
$[1] = t1;
} else {
t1 = $[1];
}
return t1;
};
Expected: /home/runner/work/react/react/compiler/apps/playground/__tests__/e2e/__snapshots__/page.spec.ts/function-scope-beats-module-scope-output.txt
Received: /home/runner/work/react/react/compiler/apps/playground/test-results/page-directives-work-function-scope-beats-module-scope-chromium/function-scope-beats-module-scope-output-actual.txt
139 |
140 | expect(output).not.toEqual('');
> 141 | expect(output).toMatchSnapshot(`${t.name}-output.txt`);
| ^
142 | }),
143 | );
144 |
at /home/runner/work/react/react/compiler/apps/playground/__tests__/e2e/page.spec.ts:141:20
|
Test playground
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see /~https://github.com/actions/runner-images/issues/10636
|
🎭 Playwright Run Summary
1 flaky
[chromium] › page.spec.ts:125:7 › directives work: function-scope-beats-module-scope ───────────
7 passed (2.5m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
test-results
|
863 KB |
|