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

Test not run on windows image or cannot find module. #809

Open
Brina1996 opened this issue Nov 30, 2022 · 2 comments
Open

Test not run on windows image or cannot find module. #809

Brina1996 opened this issue Nov 30, 2022 · 2 comments

Comments

@Brina1996
Copy link

If i run below script on windows image, test does not run,

- script: |
    npm install
    npm run build
    npm test
  displayName: 'npm install and build and test'

task finishes :
added 133 packages, and audited 271 packages in 14s

16 vulnerabilities (7 moderate, 6 high, 3 critical)

To address issues that do not require attention, run:
npm audit fix

To address all issues (including breaking changes), run:
npm audit fix --force

Run npm audit for details.
Finishing: npm install and build and test

If i split the "npm test"

- script: |
    npm install
    npm run build 
displayName: 'npm install and build and test'
-  script: |
    npm test 
displayName: 'npm test'

encounter error" cannot find module.

how do I fix this? I want to run on windows imge.

@Brina1996
Copy link
Author

Any help much appreciated

@AvazRakhimov
Copy link

AvazRakhimov commented Jan 7, 2024

Try this one

- script: |
    npm install
    npm run build
    npm test
  displayName: 'npm install, build, and test'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants