Skip to content

Tests fail to run on new project creation #529

@christopherdiehl

Description

@christopherdiehl

Description

npm run test fails with the error this promise must be present when running with -o.

1-2 sentences describing the problem you're having or the feature you'd like to request

Expected Behavior

What action did you perform, and what did you expect to happen?
I expected tests to run.

Observed Behavior

What actually happened when you performed the above actions?
The tests failed.

If there's an error message, please paste the full terminal output and error message in this code block:

Determining test suites to run...Error: This promise must be present when running with -o.
    at /Users/chris/git/apps/FirstProject/node_modules/jest/node_modules/jest-cli/build/search_source.js:202:17
    at Generator.next (<anonymous>)
    at step (/Users/chris/git/apps/FirstProject/node_modules/jest/node_modules/jest-cli/build/search_source.js:19:362)
    at /Users/chris/git/apps/FirstProject/node_modules/jest/node_modules/jest-cli/build/search_source.js:19:592
    at /Users/chris/git/apps/FirstProject/node_modules/jest/node_modules/jest-cli/build/search_source.js:19:273
    at SearchSource.getTestPaths (/Users/chris/git/apps/FirstProject/node_modules/jest/node_modules/jest-cli/build/search_source.js:216:10)
    at /Users/chris/git/apps/FirstProject/node_modules/jest/node_modules/jest-cli/build/run_jest.js:44:29
    at Generator.next (<anonymous>)

Environment

Mac v 10.12.6
Node v 7.10

Please run these commands in the project folder and fill in their results:

Also specify:

  1. Operating system:
  2. Phone/emulator/simulator & version:

Reproducible Demo

Please provide a minimized reproducible demonstration of the problem you're reporting.

Issues that come with minimal repro's are resolved much more quickly than issues where a maintainer has to reproduce themselves.

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