Skip to content

Test upgrade mf #4261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions advanced-api/automatic-vendor-sharing/app1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"babel-loader": "9.1.3",
"html-webpack-plugin": "5.6.0",
"serve": "14.2.3",
"@rspack/core": "0.7.5",
"@rspack/cli": "0.7.5",
"@rspack/dev-server": "0.7.5",
"webpack": "5.92.1",
"@rspack/core": "1.0.3",
"@rspack/cli": "1.0.3",
"@rspack/dev-server": "1.0.3",
"webpack": "5.94.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.0.4",
"@module-federation/enhanced": "0.2.5"
"@module-federation/enhanced": "0.0.0-next-20240905232541"
},
"scripts": {
"start": "rspack serve -c rspack.config.js",
Expand All @@ -27,4 +27,4 @@
"react": "^16.13.0",
"react-dom": "^16.13.0"
}
}
}
12 changes: 6 additions & 6 deletions advanced-api/automatic-vendor-sharing/app2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"babel-loader": "9.1.3",
"html-webpack-plugin": "5.6.0",
"serve": "14.2.3",
"@rspack/core": "0.7.5",
"@rspack/cli": "0.7.5",
"@rspack/dev-server": "0.7.5",
"webpack": "5.92.1",
"@rspack/core": "1.0.3",
"@rspack/cli": "1.0.3",
"@rspack/dev-server": "1.0.3",
"webpack": "5.94.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.0.4",
"@module-federation/enhanced": "0.2.5"
"@module-federation/enhanced": "0.0.0-next-20240905232541"
},
"scripts": {
"start": "rspack serve -c rspack.config.js",
Expand All @@ -27,4 +27,4 @@
"react": "^16.13.0",
"react-dom": "^16.13.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
"html-webpack-plugin": "5.6.0",
"copy-webpack-plugin": "12.0.2",
"serve": "14.2.3",
"webpack": "5.92.1",
"webpack": "5.94.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.0.4",
"@rspack/core": "0.7.5",
"@rspack/cli": "0.7.5",
"@rspack/dev-server": "0.7.5",
"@module-federation/enhanced": "0.2.5",
"@module-federation/runtime": "0.2.5"
"@rspack/core": "1.0.3",
"@rspack/cli": "1.0.3",
"@rspack/dev-server": "1.0.3",
"@module-federation/enhanced": "0.0.0-next-20240905232541",
"@module-federation/runtime": "0.0.0-next-20240905232541"
},
"scripts": {
"start": "chmod +x ./env.sh && cp env-config.json ./public/ && rspack serve",
Expand All @@ -33,4 +33,4 @@
"react": "^16.13.0",
"react-dom": "^16.13.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"babel-loader": "9.1.3",
"html-webpack-plugin": "5.6.0",
"serve": "14.2.3",
"webpack": "5.92.1",
"webpack": "5.94.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.0.4",
"@rspack/core": "0.7.5",
"@rspack/cli": "0.7.5",
"@rspack/dev-server": "0.7.5",
"@module-federation/enhanced": "0.2.5"
"@rspack/core": "1.0.3",
"@rspack/cli": "1.0.3",
"@rspack/dev-server": "1.0.3",
"@module-federation/enhanced": "0.0.0-next-20240905232541"
},
"scripts": {
"start": "chmod +x ./env.sh && cp env-config.json ./public/ && rspack serve",
Expand All @@ -32,4 +32,4 @@
"react": "^16.13.0",
"react-dom": "^16.13.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"babel-loader": "9.1.3",
"html-webpack-plugin": "5.6.0",
"serve": "14.2.3",
"webpack": "5.92.1",
"webpack": "5.94.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.0.4",
"@module-federation/enhanced": "0.2.5"
"@module-federation/enhanced": "0.0.0-next-20240905232541"
},
"scripts": {
"start": "webpack-cli serve",
Expand All @@ -23,4 +23,4 @@
"react": "^16.13.0",
"react-dom": "^16.13.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"babel-loader": "9.1.3",
"html-webpack-plugin": "5.6.0",
"serve": "14.2.3",
"webpack": "5.92.1",
"webpack": "5.94.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.0.4",
"@module-federation/enhanced": "0.2.5"
"@module-federation/enhanced": "0.0.0-next-20240905232541"
},
"scripts": {
"start": "webpack-cli serve",
Expand All @@ -25,4 +25,4 @@
"react-redux": "^7.2.0",
"redux": "^4.2.1"
}
}
}
14 changes: 7 additions & 7 deletions advanced-api/dynamic-remotes/app1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"devDependencies": {
"@babel/core": "7.24.7",
"@babel/preset-react": "7.24.7",
"@module-federation/enhanced": "0.2.5",
"@module-federation/runtime": "0.2.5",
"@rspack/cli": "0.7.5",
"@rspack/core": "0.7.5",
"@rspack/dev-server": "0.7.5",
"@module-federation/enhanced": "0.0.0-next-20240905232541",
"@module-federation/runtime": "0.0.0-next-20240905232541",
"@rspack/cli": "1.0.3",
"@rspack/core": "1.0.3",
"@rspack/dev-server": "1.0.3",
"babel-loader": "9.1.3",
"html-webpack-plugin": "5.6.0",
"serve": "14.2.3",
"webpack": "5.92.1",
"webpack": "5.94.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.0.4"
},
Expand All @@ -28,4 +28,4 @@
"react": "^16.13.0",
"react-dom": "^16.13.0"
}
}
}
12 changes: 6 additions & 6 deletions advanced-api/dynamic-remotes/app2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"devDependencies": {
"@babel/core": "7.24.7",
"@babel/preset-react": "7.24.7",
"@module-federation/enhanced": "0.2.5",
"@rspack/cli": "0.7.5",
"@rspack/core": "0.7.5",
"@rspack/dev-server": "0.7.5",
"@module-federation/enhanced": "0.0.0-next-20240905232541",
"@rspack/cli": "1.0.3",
"@rspack/core": "1.0.3",
"@rspack/dev-server": "1.0.3",
"babel-loader": "9.1.3",
"html-webpack-plugin": "5.6.0",
"serve": "14.2.3",
"webpack": "5.92.1",
"webpack": "5.94.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.0.4"
},
Expand All @@ -28,4 +28,4 @@
"react": "^16.13.0",
"react-dom": "^16.13.0"
}
}
}
12 changes: 6 additions & 6 deletions advanced-api/dynamic-remotes/app3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"devDependencies": {
"@babel/core": "7.24.7",
"@babel/preset-react": "7.24.7",
"@module-federation/enhanced": "0.2.5",
"@rspack/cli": "0.7.5",
"@rspack/core": "0.7.5",
"@rspack/dev-server": "0.7.5",
"@module-federation/enhanced": "0.0.0-next-20240905232541",
"@rspack/cli": "1.0.3",
"@rspack/core": "1.0.3",
"@rspack/dev-server": "1.0.3",
"babel-loader": "9.1.3",
"html-webpack-plugin": "5.6.0",
"serve": "14.2.3",
"webpack": "5.92.1",
"webpack": "5.94.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.0.4"
},
Expand All @@ -30,4 +30,4 @@
"react-redux": "^7.2.0",
"redux": "^4.2.1"
}
}
}
4 changes: 2 additions & 2 deletions angular-universal-ssr/client-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"ts-node": "10.9.2",
"tslint": "6.1.3",
"typescript": "5.5.3",
"webpack": "5.92.1",
"webpack": "5.94.0",
"webpack-cli": "5.1.4"
}
}
}
4 changes: 2 additions & 2 deletions angular-universal-ssr/host-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"ts-node": "10.9.2",
"tslint": "6.1.3",
"typescript": "5.5.3",
"webpack": "5.92.1",
"webpack": "5.94.0",
"webpack-cli": "5.1.4"
}
}
}
12 changes: 6 additions & 6 deletions apollo-client/app1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@
"@babel/preset-env": "7.24.7",
"@babel/preset-react": "7.24.7",
"@babel/preset-typescript": "7.24.7",
"@module-federation/node": "2.3.2",
"@module-federation/node": "0.0.0-next-20240905232541",
"@types/express": "4.17.21",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/react-helmet": "6.1.11",
"@types/serialize-javascript": "5.0.4",
"babel-loader": "9.1.3",
"rimraf": "5.0.8",
"webpack": "5.92.1",
"webpack": "5.94.0",
"webpack-cli": "5.1.4",
"webpack-merge": "6.0.1",
"@rspack/core": "0.7.5",
"@rspack/cli": "0.7.5",
"@rspack/dev-server": "0.7.5"
"@rspack/core": "1.0.3",
"@rspack/cli": "1.0.3",
"@rspack/dev-server": "1.0.3"
}
}
}
12 changes: 6 additions & 6 deletions apollo-client/app2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@
"@babel/preset-env": "7.24.7",
"@babel/preset-react": "7.24.7",
"@babel/preset-typescript": "7.24.7",
"@module-federation/node": "2.3.2",
"@module-federation/node": "0.0.0-next-20240905232541",
"@types/express": "4.17.21",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/react-helmet": "6.1.11",
"@types/serialize-javascript": "5.0.4",
"babel-loader": "9.1.3",
"rimraf": "5.0.8",
"webpack": "5.92.1",
"webpack": "5.94.0",
"webpack-cli": "5.1.4",
"webpack-merge": "6.0.1",
"@rspack/core": "0.7.5",
"@rspack/cli": "0.7.5",
"@rspack/dev-server": "0.7.5"
"@rspack/core": "1.0.3",
"@rspack/cli": "1.0.3",
"@rspack/dev-server": "1.0.3"
}
}
}
2 changes: 1 addition & 1 deletion basic-host-remote/app1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"react-dom": "~18.3.0"
},
"devDependencies": {
"@module-federation/enhanced": "0.2.5",
"@module-federation/enhanced": "0.0.0-next-20240905232541",
"@modern-js/app-tools": "2.54.6",
"@modern-js/eslint-config": "2.54.6",
"@modern-js/tsconfig": "2.54.6",
Expand Down
2 changes: 1 addition & 1 deletion basic-host-remote/app2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"react-dom": "~18.3.0"
},
"devDependencies": {
"@module-federation/enhanced": "0.2.5",
"@module-federation/enhanced": "0.0.0-next-20240905232541",
"@modern-js/app-tools": "2.54.6",
"@modern-js/eslint-config": "2.54.6",
"@modern-js/tsconfig": "2.54.6",
Expand Down
2 changes: 1 addition & 1 deletion bi-directional/app1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@modern-js/eslint-config": "2.54.6",
"@modern-js/tsconfig": "2.54.6",
"@modern-js-app/eslint-config": "2.54.6",
"@module-federation/enhanced": "0.2.5",
"@module-federation/enhanced": "0.0.0-next-20240905232541",
"@modern-js/builder-rspack-provider": "2.46.1",
"lint-staged": "15.2.7",
"prettier": "3.3.2",
Expand Down
2 changes: 1 addition & 1 deletion bi-directional/app2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@modern-js/tsconfig": "2.54.6",
"@modern-js-app/eslint-config": "2.54.6",
"@modern-js/builder-rspack-provider": "2.46.1",
"@module-federation/enhanced": "0.2.5",
"@module-federation/enhanced": "0.0.0-next-20240905232541",
"lint-staged": "15.2.7",
"prettier": "3.3.2",
"husky": "9.0.11",
Expand Down
27 changes: 7 additions & 20 deletions bi-directional/e2e/checkBiDirectionalApps.cy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { BaseMethods } from '../../cypress-e2e/common/base';
import { baseSelectors } from '../../cypress-e2e/common/selectors';
import { Constants } from '../../cypress-e2e/fixtures/constants';

const basePage: BaseMethods = new BaseMethods();

const appsData = [
Expand Down Expand Up @@ -32,27 +31,15 @@ appsData.forEach(
describe('Bi Directional', () => {
context(`Check ${property.appName} elements exists on the page`, () => {
before(() => {
basePage.openLocalhost({
number: property.host,
});
cy.visit('http://localhost:' + property.host)
});

it(`Check App1 and App2 elements`, () => {
basePage.checkElementWithTextPresence({
selector: baseSelectors.tags.headers.h1,
text: String(property.appName),
});
basePage.checkElementWithTextPresence({
selector: baseSelectors.tags.headers.h2,
text: String(property.appSubheader),
});
basePage.clickElementWithText({
selector: baseSelectors.tags.coreElements.button,
text: String(property.app1Button),
});
basePage.clickElementWithText({
selector: baseSelectors.tags.coreElements.button,
text: String(property.app2Button),
});
if(property.host === 3001) {
cy.contains('App 2 Button').should('exist');
} else {
cy.contains('App 1 Button').should('exist');
}
});
});
});
Expand Down
2 changes: 1 addition & 1 deletion bi-directional/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build": "pnpm --filter bi-directional_* run build",
"serve": "pnpm --filter bi-directional_* run serve",
"clean": "pnpm --filter bi-directional_* run reset",
"e2e:ci": "pnpm build && pnpm serve & sleep 5 && wait-on tcp:3001 && wait-on tcp:3002 && npx cypress run --config-file ../cypress-e2e/config/cypress.config.ts --config '{\"supportFile\": \"../cypress-e2e/support/e2e.ts\"}' --spec \"./e2e/*.cy.ts\" --browser=chrome"
"e2e:ci": "pnpm build && pnpm serve & sleep 10 && npx cypress run --config-file ../cypress-e2e/config/cypress.config.ts --config '{\"supportFile\": \"../cypress-e2e/support/e2e.ts\"}' --spec \"./e2e/*.cy.ts\" --browser=chrome"
},
"devDependencies": {
"concurrently": "8.2.2",
Expand Down
Loading
Loading