Skip to content

Test case failure while building react-lifecycles-compat on PowerPC64LE - ppc64le #51

@sarveshtamba

Description

@sarveshtamba

Trying the build using npm install, getting the following test case failure while building react-lifecycles-compat on PowerPC64LE - ppc64le:-

index.js → react-lifecycles-compat.min.js...
created react-lifecycles-compat.min.js in 202ms

> [email protected] test /home/tester/react-lifecycles-compat
> jest test.js

 FAIL  ./test.js
  ● Test suite failed to run

    SecurityError: localStorage is not available for opaque origins

      at Window.get localStorage [as localStorage] (node_modules/jsdom/lib/jsdom/browser/Window.js:257:15)
          at Array.forEach (<anonymous>)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        0.815s
Ran all test suites matching /test.js/i.
npm ERR! Test failed.  See above for more details.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] prepublish: `npm test`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-04-10T10_32_03_767Z-debug.log

Any help would be greatly appreciated.

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