Skip to content
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

Fix test mode detection #69416

Merged
merged 1 commit into from
Aug 28, 2024
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -414,9 +414,9 @@ jobs:
uses: ./.github/workflows/build_reusable.yml
with:
afterBuild: pnpm playwright install &&
NEXT_TEST_MODE=start BROWSER_NAME=firefox node run-tests.js test/production/pages-dir/production/test/index.test.ts &&
BROWSER_NAME=firefox node run-tests.js test/production/pages-dir/production/test/index.test.ts &&
NEXT_TEST_MODE=start BROWSER_NAME=safari node run-tests.js -c 1 test/production/pages-dir/production/test/index.test.ts test/e2e/basepath.test.ts &&
NEXT_TEST_MODE=start BROWSER_NAME=safari DEVICE_NAME='iPhone XR' node run-tests.js -c 1 test/production/prerender-prefetch/index.test.ts
BROWSER_NAME=safari DEVICE_NAME='iPhone XR' node run-tests.js -c 1 test/production/prerender-prefetch/index.test.ts

stepName: 'test-firefox-safari'
secrets: inherit
Expand Down
2 changes: 1 addition & 1 deletion test/lib/e2e-utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if (process.env.NEXT_E2E_TEST_TIMEOUT) {

jest.setTimeout(testTimeout)

const testsFolder = path.join(__dirname, '..')
const testsFolder = path.join(__dirname, '..', '..')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😭


let testFile
const testFileRegex = /\.test\.(js|tsx?)/
Expand Down
Loading