Skip to content

Support node -p #4

@espadrine

Description

@espadrine

ass is designed to work on a child process. However, it doesn't support node -p.

For instance, the following change on line 14 of the current example:

kid = cp.spawn("node", ["-p", "require('ass');require('./server')"], { stdio: 'inherit' });

yields the following error:

/example/node_modules/ass/node_modules/blanket/src/index.js:203
        args[1].indexOf(join('node_modules','mocha','bin')) > -1 &&
                ^
TypeError: Cannot call method 'indexOf' of undefined
  …
  at Object.<anonymous> (/example/node_modules/ass/index.js:119:3)

This may be an upstream bug in Blanket.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions