react-new-window icon indicating copy to clipboard operation
react-new-window copied to clipboard

Installation and use of package causes Jest error

Open sshadmand opened this issue 6 years ago • 0 comments

Works fine in app, but fails test due to some known reason in NewWindow.js from importing React.

"react-new-window": "^0.0.12" "jest": "20.0.4"

 ● Test suite failed to run

    /Users/seanshadmand/repos/konch/konch-www/node_modules/react-new-window/src/NewWindow.js:6
    import React from 'react'
    ^^^^^^
    
    SyntaxError: Unexpected token import
      
      at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/Script

sshadmand avatar Apr 02 '19 00:04 sshadmand