rename tools/modern-tests to tools/e2e-tests and update references

This commit is contained in:
Nacho Codoñer
2026-03-09 14:13:43 +01:00
parent 85daa9c7d7
commit aa8403ae2e
5 changed files with 9 additions and 9 deletions

View File

@@ -31,7 +31,7 @@ npm run test:modern # Run all E2E tests
npm run test:modern -- -t="React" # Run specific test
```
## Modern E2E Tests (`tools/modern-tests/`)
## Modern E2E Tests (`tools/e2e-tests/`)
Jest + Playwright suite for verifying modern bundler integrations (rspack). Tests cover framework skeletons and build scenarios.

View File

@@ -4,7 +4,7 @@ on:
pull_request:
paths:
- 'meteor'
- 'tools/modern-tests/**'
- 'tools/e2e-tests/**'
- 'packages/rspack/**'
- 'packages/tools-core/**'
- 'packages/babel-compiler/**'
@@ -52,7 +52,7 @@ jobs:
path: |
~/.npm
node_modules
tools/modern-tests/node_modules
tools/e2e-tests/node_modules
packages/**/.npm
.meteor
dev_bundle

View File

@@ -148,7 +148,7 @@ Place test files next to the module they test using the `*.test.js` naming conve
### E2E tests (Jest + Playwright)
End-to-end tests in `tools/modern-tests/` validate that Meteor skeletons and bundler integrations work correctly. They create real Meteor apps, start dev servers, and assert behavior in a headless Chromium browser.
End-to-end tests in `tools/e2e-tests/` validate that Meteor skeletons and bundler integrations work correctly. They create real Meteor apps, start dev servers, and assert behavior in a headless Chromium browser.
```sh
# Install dependencies (first time)
@@ -161,7 +161,7 @@ npm run test:e2e
npm run test:e2e -- -t="React"
```
Each test has a corresponding app fixture in `tools/modern-tests/apps/`. See that directory for examples when adding new E2E tests.
Each test has a corresponding app fixture in `tools/e2e-tests/apps/`. See that directory for examples when adding new E2E tests.
### Self-tests (Meteor tool)

View File

@@ -38,8 +38,8 @@
"install:unit": "cd tools/unit-tests && npm install",
"test:unit": "cd tools/unit-tests && npm test",
"test:idle-bot": "node --test .github/scripts/__tests__/inactive-issues.test.js",
"install:e2e": "cd tools/modern-tests && npm install && npx playwright install --with-deps chromium chromium-headless-shell",
"test:e2e": "cd tools/modern-tests && npm test -- "
"install:e2e": "cd tools/e2e-tests && npm install && npx playwright install --with-deps chromium chromium-headless-shell",
"test:e2e": "cd tools/e2e-tests && npm test -- "
},
"jshintConfig": {
"esversion": 11

View File

@@ -10,13 +10,13 @@ module.exports = {
],
testPathIgnorePatterns: [
"/node_modules/",
"<rootDir>/tools/modern-tests/",
"<rootDir>/tools/e2e-tests/",
"<rootDir>/tools/tests/",
"<rootDir>/packages/",
"<rootDir>/.github/",
],
modulePathIgnorePatterns: [
"<rootDir>/tools/modern-tests/",
"<rootDir>/tools/e2e-tests/",
"<rootDir>/tools/tests/",
"<rootDir>/tools/static-assets/",
"<rootDir>/npm-packages/",