Skip to content

npm run test with error on Windows #5736

Closed
@Rondinelly

Description

@Rondinelly

Q&A

  • OS: Windows 10
  • Node: v10.16.3
  • npm: 6.9.0

Describe the bug you're encountering

To reproduce...

Steps to reproduce the behavior:

  1. Run npm run test

  2. Result in Error :

> swagger-ui@3.24.3 test C:\Users\Usuario\Desktop\swagger-ui
> run-s just-test-in-node e2e-cypress lint-errors


> swagger-ui@3.24.3 just-test-in-node C:\Users\Usuario\Desktop\swagger-ui
> mocha --require test/mocha/setup.js --recursive --compilers js:@babel/register --require source-map-support 'test/mocha/**/*.{js,jsx}'

Warning: Could not find any test files matching pattern: 'test/mocha/**/*.{js,jsx}'
No test files found
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! swagger-ui@3.24.3 just-test-in-node: `mocha --require test/mocha/setup.js --recursive --compilers js:@babel/register --require source-map-support 'test/mocha/**/*.{js,jsx}'`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the swagger-ui@3.24.3 just-test-in-node script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Usuario\AppData\Roaming\npm-cache\_logs\2019-12-05T19_51_41_005Z-debug.log
ERROR: "just-test-in-node" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! swagger-ui@3.24.3 test: `run-s just-test-in-node e2e-cypress lint-errors`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the swagger-ui@3.24.3 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Usuario\AppData\Roaming\npm-cache\_logs\2019-12-05T19_51_41_036Z-debug.log

Relationed: #2895

Metadata

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