Skip to content

Commit 4a1a2b4

Browse files
chore(deps): update @biomejs/biome to v1.7.0 (#2119)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent e1d4aac commit 4a1a2b4

File tree

13 files changed

+70
-69
lines changed

13 files changed

+70
-69
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ playwright-report/
1212
tsconfig.tsbuildinfo
1313
.swc
1414

15+
# CSS Modules dist files
16+
*.css.d.ts
17+
*.less.d.ts
18+
*.scss.d.ts
19+
20+
# Test temp files
21+
test-temp-*
22+
1523
.vscode/**/*
1624
!.vscode/settings.json
1725
!.vscode/extensions.json

e2e/cases/css/css-modules-dom/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

e2e/cases/css/css-modules-ts-declaration/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

e2e/cases/css/style-loader/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

e2e/cases/css/style-loader/index.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ rspackOnlyTest(
4646
test.skip();
4747
}
4848

49-
await fse.copy(join(fixtures, 'src'), join(fixtures, 'test-src'));
49+
await fse.copy(join(fixtures, 'src'), join(fixtures, 'test-temp-src'));
5050

5151
const rsbuild = await dev({
5252
cwd: fixtures,
5353
rsbuildConfig: {
5454
source: {
5555
entry: {
56-
index: join(fixtures, 'test-src/index.ts'),
56+
index: join(fixtures, 'test-temp-src/index.ts'),
5757
},
5858
},
5959
},
@@ -72,7 +72,7 @@ rspackOnlyTest(
7272
const locatorKeep = page.locator('#test-keep');
7373
const keepNum = await locatorKeep.innerHTML();
7474

75-
const filePath = join(fixtures, 'test-src/App.module.less');
75+
const filePath = join(fixtures, 'test-temp-src/App.module.less');
7676

7777
await fse.writeFile(
7878
filePath,

e2e/cases/preview/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

e2e/cases/server/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

e2e/cases/server/dev.test.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@ rspackOnlyTest('default & hmr (default true)', async ({ page }) => {
1313
test.skip();
1414
}
1515

16-
await fse.copy(join(fixtures, 'hmr/src'), join(fixtures, 'hmr/test-src'));
16+
await fse.copy(
17+
join(fixtures, 'hmr/src'),
18+
join(fixtures, 'hmr/test-temp-src'),
19+
);
1720
const rsbuild = await dev({
1821
cwd: join(fixtures, 'hmr'),
1922
plugins: [pluginReact()],
2023
rsbuildConfig: {
2124
source: {
2225
entry: {
23-
index: join(fixtures, 'hmr', 'test-src/index.ts'),
26+
index: join(fixtures, 'hmr', 'test-temp-src/index.ts'),
2427
},
2528
},
2629
output: {
@@ -46,7 +49,7 @@ rspackOnlyTest('default & hmr (default true)', async ({ page }) => {
4649
const locatorKeep = page.locator('#test-keep');
4750
const keepNum = await locatorKeep.innerHTML();
4851

49-
const appPath = join(fixtures, 'hmr', 'test-src/App.tsx');
52+
const appPath = join(fixtures, 'hmr', 'test-temp-src/App.tsx');
5053

5154
await fse.writeFile(
5255
appPath,
@@ -58,7 +61,7 @@ rspackOnlyTest('default & hmr (default true)', async ({ page }) => {
5861
// #test-keep should unchanged when app.tsx hmr
5962
await expect(locatorKeep.innerHTML()).resolves.toBe(keepNum);
6063

61-
const cssPath = join(fixtures, 'hmr', 'test-src/App.css');
64+
const cssPath = join(fixtures, 'hmr', 'test-temp-src/App.css');
6265

6366
await fse.writeFile(
6467
cssPath,
@@ -93,15 +96,18 @@ rspackOnlyTest(
9396
test.skip();
9497
}
9598

96-
await fse.copy(join(fixtures, 'hmr/src'), join(fixtures, 'hmr/test-src-1'));
99+
await fse.copy(
100+
join(fixtures, 'hmr/src'),
101+
join(fixtures, 'hmr/test-temp-src-1'),
102+
);
97103
const cwd = join(fixtures, 'hmr');
98104
const rsbuild = await dev({
99105
cwd,
100106
plugins: [pluginReact()],
101107
rsbuildConfig: {
102108
source: {
103109
entry: {
104-
index: join(cwd, 'test-src-1/index.ts'),
110+
index: join(cwd, 'test-temp-src-1/index.ts'),
105111
},
106112
},
107113
output: {
@@ -123,7 +129,7 @@ rspackOnlyTest(
123129
await gotoPage(page, rsbuild);
124130
expect(rsbuild.port).toBe(3001);
125131

126-
const appPath = join(fixtures, 'hmr', 'test-src-1/App.tsx');
132+
const appPath = join(fixtures, 'hmr', 'test-temp-src-1/App.tsx');
127133

128134
const locator = page.locator('#test');
129135
await expect(locator).toHaveText('Hello Rsbuild!');

e2e/cases/server/overlay/index.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ test('should show overlay correctly', async ({ page }) => {
1313

1414
const { restore } = proxyConsole();
1515

16-
await fse.copy(join(cwd, 'src'), join(cwd, 'test-src'));
16+
await fse.copy(join(cwd, 'src'), join(cwd, 'test-temp-src'));
1717

1818
const rsbuild = await dev({
1919
cwd,
2020
rsbuildConfig: {
2121
source: {
2222
entry: {
23-
index: join(cwd, 'test-src/index.tsx'),
23+
index: join(cwd, 'test-temp-src/index.tsx'),
2424
},
2525
},
2626
},
@@ -32,7 +32,7 @@ test('should show overlay correctly', async ({ page }) => {
3232

3333
expect(await errorOverlay.locator('.title').count()).toBe(0);
3434

35-
const appPath = join(cwd, 'test-src/App.tsx');
35+
const appPath = join(cwd, 'test-temp-src/App.tsx');
3636

3737
await fse.writeFile(
3838
appPath,

e2e/cases/vue/jsx-hmr/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function editFile(filename: string, replacer: (str: string) => string): void {
229229

230230
const timeout = (n: number) => new Promise((r) => setTimeout(r, n));
231231

232-
export async function untilUpdated(
232+
async function untilUpdated(
233233
poll: () => Promise<string | null>,
234234
expected: string,
235235
): Promise<void> {

0 commit comments

Comments
 (0)