mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
rename tools/modern-tests to tools/e2e-tests and update references
This commit is contained in:
2
.github/skills/testing/SKILL.md
vendored
2
.github/skills/testing/SKILL.md
vendored
@@ -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.
|
||||
|
||||
|
||||
4
.github/workflows/e2e-tests.yml
vendored
4
.github/workflows/e2e-tests.yml
vendored
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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/",
|
||||
|
||||
Reference in New Issue
Block a user