Skip to content

Commit

Permalink
test: charset
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Aug 20, 2024
1 parent 8f12922 commit 6f20bc9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { build, gotoPage } from '@e2e/helper';
import { expect, test } from '@playwright/test';

test('output.charset default (ascii)', async ({ page }) => {
test('should allow to set output.charset to ascii', async ({ page }) => {
const rsbuild = await build({
cwd: __dirname,
runServer: true,
rsbuildConfig: {
output: {
charset: 'ascii',
},
},
});

await gotoPage(page, rsbuild);
Expand All @@ -24,7 +29,7 @@ test('output.charset default (ascii)', async ({ page }) => {
await rsbuild.close();
});

test('output.charset (utf8)', async ({ page }) => {
test('should allow to set output.charset to utf8', async ({ page }) => {
const rsbuild = await build({
cwd: __dirname,
rsbuildConfig: {
Expand Down
File renamed without changes.

0 comments on commit 6f20bc9

Please sign in to comment.