Skip to content

Commit 09a7890

Browse files
authored
test: fix port conflict in cjs tests (#51)
fix port conflict in cjs tests https://github.com/rspack-contrib/rsbuild-ecosystem-ci/actions/runs/14212542436/job/39822237976
1 parent d43b267 commit 09a7890

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/cjs/index.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { fileURLToPath } from 'node:url';
33
import { expect, test } from '@playwright/test';
44
import { createRsbuild } from '@rsbuild/core';
55
import { pluginTailwindCSS } from '../../src';
6+
import { getRandomPort } from '../helper';
67

78
const __dirname = dirname(fileURLToPath(import.meta.url));
89

@@ -74,6 +75,9 @@ test('should build without tailwind.config.js', async ({ page }) => {
7475
const rsbuild = await createRsbuild({
7576
cwd: __dirname,
7677
rsbuildConfig: {
78+
server: {
79+
port: getRandomPort(),
80+
},
7781
plugins: [pluginTailwindCSS()],
7882
},
7983
});

0 commit comments

Comments
 (0)