Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeless0911 committed Dec 23, 2024
1 parent 21fa485 commit 3ede44d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions tests/integration/cli/mf-dev/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export default defineConfig({
},
},
],
server: {
port: 3007,
},
plugins: [
pluginModuleFederation({
name: 'test',
Expand Down
3 changes: 3 additions & 0 deletions tests/integration/plugins/mf-dev/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@ export default defineConfig({
plugins: [pluginModuleFederation({ name: 'test-plugins' }), testPlugin2],
},
],
server: {
port: 3009,
},
plugins: [testPlugin1],
});
2 changes: 1 addition & 1 deletion tests/integration/server/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('server config', async () => {

const rsbuildConfigContent = await fse.readFile(rsbuildConfigFile, 'utf-8');
expect(rsbuildConfigContent).toContain('open: true');
expect(rsbuildConfigContent).toContain('port: 3001');
expect(rsbuildConfigContent).toContain('port: 3011');

childProcess.kill();
});
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/server/mf-dev/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({
},
],
server: {
port: 3001,
port: 3011,
open: true,
},
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"scripts": {
"test:benchmark": "vitest bench",
"test:e2e": "lsof -i:3000 && lsof -i:3001 && lsof -i:3002 && cross-env DEBUG=pw:webserver playwright test --pass-with-no-tests"
"test:e2e": "playwright test --pass-with-no-tests"
},
"dependencies": {
"react": "^19.0.0",
Expand Down
3 changes: 0 additions & 3 deletions tests/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,16 @@ export default defineConfig({
{
command: 'cd ../examples/module-federation && npm run dev:host',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
timeout: 120 * 1000,
},
{
command: 'cd ../examples/module-federation && npm run serve:lib',
url: 'http://localhost:3001',
reuseExistingServer: !process.env.CI,
timeout: 120 * 1000,
},
{
command: 'cd ../examples/module-federation && npm run dev:remote',
url: 'http://localhost:3002',
reuseExistingServer: !process.env.CI,
timeout: 120 * 1000,
},
],
Expand Down

0 comments on commit 3ede44d

Please sign in to comment.