Skip to content

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

Open
@Brina1996

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions