Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

'npm test' syntax not working on windows #86

@Guuz

Description

@Guuz

Using Windows 8 and Git Bash the following is not working:

In package.json the npm test script is declared as following:

"scripts": {
  "test": "node lib/cli.js spec/basicConf.js; node lib/cli.js spec/altRootConf.js; node_modules/.bin/minijasminenode jasminewd/spec/adapterSpec.js"
},

Running this I get the following error:

module.js:340
    throw err;
          ^
Error: Cannot find module 'C:\Projects\protractor\spec\basicConf.js;'

I believe the semi-colon is to blame. When I replace those by 1 or 2 ampersands it works.

node lib/cli.js spec/basicConf.js & node lib/cli.js spec/altRootConf.js

The problem then is that the third (last) command starting minijasminenode gives this error:

'node_modules' is not recognized as an internal or external command,
operable program or batch file.

I don't know how to fix this... But at least the first two statements/test scripts work. Maybe someone knows how this "npm test" can be declared so it works cross platform?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions