Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. import React from 'react';
  2. import ReactDOM from 'react-dom';
  3. import App from '../src/App';
  4.  
  5. it('renders without crashing', () => {
  6. const div = document.createElement('div');
  7. ReactDOM.render(<App />, div);
  8. ReactDOM.unmountComponentAtNode(div);
  9. });
  10.  
  11. /opt/elucidat-javascript-test/client/node_modules/react-seatmap/lib/index.js:1
  12. ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import Seatmap from './Seatmap';
  13. ^^^^^^^
  14.  
  15. SyntaxError: Unexpected identifier
  16.  
  17. at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:537:17)
  18. at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:579:25)
  19. at Object.<anonymous> (node_modules/react-seatmap/index.js:1:45)
  20.  
  21. Test Suites: 1 failed, 1 total
  22. Tests: 0 total
  23. Snapshots: 0 total
  24. Time: 1.409s
  25. Ran all test suites.
  26. error Command failed with exit code 1.
  27.  
  28. module.exports = {
  29. verbose: true,
  30. "collectCoverageFrom": [
  31. "!/node_modules/*"
  32. ]
  33. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement