Skip to content

Tests failing on a newly created app #15810

@cschroeter

Description

@cschroeter

Is this a bug report?

yes

Have you read the Contributing Guidelines?

yes

Environment

react-native-cli: 2.0.1
react-native: 0.48.1
node: v8.4.0
yarn: 0.27.5

  • Target Platform:
    iOs, Android
  • Development Operating System:
    macOs Sierra 10.12.6

Steps to Reproduce

  1. react-native init testapp
  2. cd testapp
  3. yarn test

Expected Behavior

Initially created tests should pass.

Actual Behavior

yarn test
yarn test v0.27.5
$ jest
 FAIL  __tests__/index.android.js
  ● Test suite failed to run

    TypeError: Cannot read property 'BLOB_URI_SCHEME' of undefined

      at Object.<anonymous> (node_modules/react-native/Libraries/Blob/URL.js:21:21)
      at node_modules/react-native/Libraries/Core/InitializeCore.js:174:40
      at getValue (node_modules/react-native/Libraries/Utilities/defineLazyObjectProperty.js:44:10)
      at ContextifyScript.Script.runInContext (vm.js:53:29)

 FAIL  __tests__/index.ios.js
  ● Test suite failed to run

    TypeError: Cannot read property 'BLOB_URI_SCHEME' of undefined

      at Object.<anonymous> (node_modules/react-native/Libraries/Blob/URL.js:21:21)
      at node_modules/react-native/Libraries/Core/InitializeCore.js:174:40
      at getValue (node_modules/react-native/Libraries/Utilities/defineLazyObjectProperty.js:44:10)
      at ContextifyScript.Script.runInContext (vm.js:53:29)

Test Suites: 2 failed, 2 total
Tests:       0 total
Snapshots:   0 total
Time:        0.95s
Ran all test suites.
error Command failed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions