Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Blank schematic project failed to run unit test with error no such file or directory #860

@mattma

Description

@mattma

Bug Report or Feature Request (mark with an x)

- [ x] bug report -> please search issues before submitting
- [ ] feature request

Area

- [ ] devkit
- [ x ] schematics

Versions

node --version
v8.9.4

npm --version
5.6.0

Repro steps

A blank schematics project generated with version 0.6.0.

npm run test

The log given by the failure

> npm run build && jasmine **/*_spec.js


> my-schematics@0.0.0 build /Users/***/my-schematics
> tsc -p tsconfig.json

fs.js:646
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open '/Users/mattma/Desktop/temp/my-schematics/node_modules/fsevents/node_modules/needle/test/keys/ssl.cert'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at Object.<anonymous> (/Users/mattma/Desktop/temp/my-schematics/node_modules/fsevents/node_modules/needle/test/helpers.js:9:13)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)

Desired functionality

Unit Test passed

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions