Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: make babel test pass under Node.js 24 (#36420)
Max Schmittc68c3f3f4ce9
diff --git a/tests/playwright-test/babel.spec.ts b/tests/playwright-test/babel.spec.tsindex 340fda91ad..0d7572de5b 100644--- a/tests/playwright-test/babel.spec.ts+++ b/tests/playwright-test/babel.spec.ts@@ -145,11 +145,15 @@ test('should not transform external', async ({ runInlineTest }) => {'a.spec.ts': `const { test, expect, Page } = require('@playwright/test');let page: Page;- test('succeeds', () => {});+ enum MyEnum { Value = 'value' }++ test('succeeds', () => {+ expect(MyEnum.Value).toBe('value');+ });`});expect(result.exitCode).toBe(1);- expect(result.output).toContain(`SyntaxError: Unexpected token ':'`);+ expect(result.output).toMatch(/(SyntaxError: Unexpected token ':')|(SyntaxError: TypeScript enum is not supported)/);});for (const type of ['module', undefined]) {