Skip to content
This repository was archived by the owner on Dec 11, 2018. It is now read-only.
This repository was archived by the owner on Dec 11, 2018. It is now read-only.

TypeError: Cannot read property 'Aspect' of undefined #8

@ashokprogress

Description

@ashokprogress

I am writing unit test cases for my project using jest.

when i run npm test i am getting below error.

● Test suite failed to run

    TypeError: Cannot read property 'Aspect' of undefined
      
      at Object.<anonymous> (node_modules/react-native-qrcode-scanner/node_modules/react-native-camera/index.js:254:78)
      at Object.<anonymous> (node_modules/react-native-qrcode-scanner/index.js:17:24)

below is my code.

import React from 'react';
import TestUtils from 'react-addons-test-utils';
import {Item} from '../Item';

test('works', () => {
  expect(true).toBe(true)
})

react-native --version
react-native-cli: 2.0.1
react-native: 0.40.0

package.json
"react-native-qrcode-scanner": "0.0.8",

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