mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: do not read browserslist file (#23127)
Fixes https://github.com/microsoft/playwright/issues/23125
This commit is contained in:
parent
595c4cb855
commit
0c032eb7be
@ -76,6 +76,7 @@ function babelTransformOptions(isTypeScript: boolean, isModule: boolean, plugins
|
||||
}
|
||||
|
||||
return {
|
||||
browserslistConfigFile: false,
|
||||
babelrc: false,
|
||||
configFile: false,
|
||||
assumptions: {
|
||||
|
@ -117,3 +117,17 @@ test('should work with |const| Type Parameters', async ({ runInlineTest }) => {
|
||||
expect(result.passed).toBe(1);
|
||||
expect(result.output).toContain('names: Alice, Bob, Eve');
|
||||
});
|
||||
|
||||
test('should not read browserslist file', async ({ runInlineTest }) => {
|
||||
test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23125' });
|
||||
const result = await runInlineTest({
|
||||
'package.json': `{ "browserslist": ["some invalid! value :)"] }`,
|
||||
'one-success.spec.ts': `
|
||||
import { test, expect } from '@playwright/test';
|
||||
test('succeeds', () => {});
|
||||
`
|
||||
});
|
||||
expect(result.exitCode).toBe(0);
|
||||
expect(result.passed).toBe(1);
|
||||
expect(result.failed).toBe(0);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user