Repository navigation
feat(test-runner): respect useDefineForClassFields from tsconfig - #43262
Conversation
Test results for "tests 1"6 flaky53321 passed, 1266 skipped Merge workflow run. |
Test results for "MCP"2 failed 9111 passed, 1495 skipped Merge workflow run. |
|
Hi, I'm the Playwright bot and I took a first look at the CI failures. 🟢 Both failures are confirmed pre-existing flakesThe same tests fail with the same errors on unrelated SHAs, so these failures are unlikely to be caused by this PR. DetailsPre-existing flakes
This PR changes TypeScript class-field transformation, but the exact failure signatures predate it. The primary test workflow had six retry-rescued flakes and no final failures, so they do not need triage. Triaged by the Playwright bot - agent run |
| expect(result.passed).toBe(1); | ||
| }); | ||
|
|
||
| for (const [compilerOptions, define] of [ |
There was a problem hiding this comment.
So many tests for such a small feature??
| jsxImportSource?: string; | ||
| }; | ||
| export type BabelTransformFunction = (code: string, filename: string, isModule: boolean, pluginsSuffix: BabelPlugin[], jsx?: JsxOptions) => BabelFileResult | null; | ||
| export type BabelTransformFunction = (code: string, filename: string, isModule: boolean, pluginsSuffix: BabelPlugin[], useDefineForClassFields: boolean, jsx?: JsxOptions) => BabelFileResult | null; |
There was a problem hiding this comment.
I wonder whether it's time to define TransformOptions and use it across babelBundle and transform?
Summary
tsc:useDefineForClassFieldsfrom tsconfig, otherwise derived fromtarget(defaults totrue, as in TypeScript 6+)."useDefineForClassFields": false.