Skip to content

Commit a3675a4

Browse files
committed
chore: lint
1 parent 6a72546 commit a3675a4

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.button {
2-
background: url("../../assets/logo.svg");
2+
background: yellow;
33
}

tests/e2e/react-component/index.pw.test.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,36 +58,36 @@ test('should render example "react-component-bundle" successfully', async ({
5858
await rsbuild.close();
5959
});
6060

61-
test('should render example "react-component-umd" successfully', async ({
61+
test('should render example "react-component-bundle-false" successfully', async ({
6262
page,
6363
}) => {
64-
const umdPath = path.resolve(
65-
getCwdByExample('react-component-umd'),
66-
'./dist/umd/index.js',
67-
);
68-
fs.mkdirSync(path.resolve(__dirname, './public/umd'), { recursive: true });
69-
fs.copyFileSync(umdPath, path.resolve(__dirname, './public/umd/index.js'));
70-
7164
const rsbuild = await dev({
7265
cwd: __dirname,
7366
page,
74-
environment: ['umd'],
67+
environment: ['bundleFalse'],
7568
});
7669

7770
await counterCompShouldWork(page);
71+
await styleShouldWork(page);
72+
await assetShouldWork(page);
7873
await rsbuild.close();
7974
});
80-
81-
test('should render example "react-component-bundle-false" successfully', async ({
75+
test('should render example "react-component-umd" successfully', async ({
8276
page,
8377
}) => {
78+
const umdPath = path.resolve(
79+
getCwdByExample('react-component-umd'),
80+
'./dist/umd/index.js',
81+
);
82+
fs.mkdirSync(path.resolve(__dirname, './public/umd'), { recursive: true });
83+
fs.copyFileSync(umdPath, path.resolve(__dirname, './public/umd/index.js'));
84+
8485
const rsbuild = await dev({
8586
cwd: __dirname,
8687
page,
87-
environment: ['bundleFalse'],
88+
environment: ['umd'],
8889
});
8990

9091
await counterCompShouldWork(page);
91-
await styleShouldWork(page);
9292
await rsbuild.close();
9393
});

0 commit comments

Comments
 (0)