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

Windows: npm run e2e does not work #37

Closed
shazron opened this issue May 14, 2024 · 3 comments · Fixed by #40
Closed

Windows: npm run e2e does not work #37

shazron opened this issue May 14, 2024 · 3 comments · Fixed by #40
Labels
bug Something isn't working Windows

Comments

@shazron
Copy link
Member

shazron commented May 14, 2024

On Windows 11.

 $ npm run e2e

> @adobe/aio-cli-plugin-app-dev@0.1.0 e2e
> jest --collectCoverage=false --testRegex './e2e/e2e.js'

No tests found, exiting with code 1
Run with `--passWithNoTests` to exit with code 0
In C:\Users\shazr\Documents\git\work\adobe\aio-cli-plugin-app-dev
  56 files checked.
  testMatch:  - 0 matches
  testPathIgnorePatterns: C:\\Users\\shazr\\Documents\\git\\work\\adobe\\aio-cli-plugin-app-dev\\src\\* - 50 matches
  testRegex: '.\\e2e\\e2e.js' - 0 matches
Pattern:  - 0 matches
@shazron shazron added the bug Something isn't working label May 14, 2024
@shazron
Copy link
Member Author

shazron commented May 14, 2024

@shazron
Copy link
Member Author

shazron commented May 14, 2024

Fix is:

package.json

"e2e": "jest -c jest.e2e.config.js"

jest.e2e.config.js

module.exports = {
  testEnvironment: 'node',
  testRegex: './e2e/e2e.js'
}

@aiojbot
Copy link

aiojbot commented May 14, 2024

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-2987

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants