Skip to content

Commit

Permalink
test(e2e): enable test case for browserslist extends (#3010)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Jul 24, 2024
1 parent 4cf24fd commit 49c4c00
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions e2e/cases/browserslist/extends-browserslist/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { build } from '@e2e/helper';
import { expect, test } from '@playwright/test';

// TODO Rspack does not supports extends browserslist yet
test.fail('extends browserslist and downgrade the syntax', async () => {
test('extends browserslist and downgrade the syntax', async () => {
const originalCwd = process.cwd();
process.chdir(__dirname);

const rsbuild = await build({
cwd: __dirname,
});
Expand All @@ -13,4 +15,6 @@ test.fail('extends browserslist and downgrade the syntax', async () => {
files[Object.keys(files).find((file) => file.endsWith('.js'))!];

expect(indexFile.includes('async ')).toBeFalsy();

process.chdir(originalCwd);
});

0 comments on commit 49c4c00

Please sign in to comment.