-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.jest-test-results.json
1 lines (1 loc) · 29.8 KB
/
.jest-test-results.json
1
{"numFailedTestSuites":7,"numFailedTests":1,"numPassedTestSuites":1,"numPassedTests":7,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":6,"numTodoTests":0,"numTotalTestSuites":8,"numTotalTests":8,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesUnmatched":0,"filesUpdated":0,"matched":1,"total":1,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1561388546035,"success":false,"testResults":[{"assertionResults":[],"coverage":{},"endTime":1561388576698,"message":" \u001b[1m● \u001b[22mTest suite failed to run\n\n Cannot find module './shallow' from 'index.js'\n\n However, Jest was able to find:\n \t'./shallow.js'\n\n You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['js', 'json', 'jsx', 'ts', 'tsx', 'node'].\n\n See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string\n\n \u001b[2mat Resolver.resolveModule (\u001b[22mnode_modules/jest-resolve/build/index.js\u001b[2m:230:17)\u001b[22m\n \u001b[2mat Object.<anonymous> (\u001b[22mnode_modules/enzyme/build/index.js\u001b[2m:19:16)\u001b[22m\n","name":"/c/Users/martin.forre/Projects/Equinor/Fusion/fusion-components/dist/hooks/__tests__/hookTestScope.js","startTime":1561388576698,"status":"failed","summary":""},{"assertionResults":[{"ancestorTitles":["Hooks|KeyboardNavigation"],"failureMessages":[],"fullName":"Hooks|KeyboardNavigation Default","location":null,"status":"passed","title":"Default"}],"endTime":1561388574408,"message":"","name":"/c/Users/martin.forre/Projects/Equinor/Fusion/fusion-components/src/hooks/__stories__/KeyboardNavigation.stories.jsx","startTime":1561388567931,"status":"passed","summary":""},{"assertionResults":[],"coverage":{},"endTime":1561388576698,"message":" \u001b[1m● \u001b[22mTest suite failed to run\n\n \u001b[1m\u001b[31mJest encountered an unexpected token\u001b[39m\u001b[22m\n\n This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript.\n\n By default, if Jest sees a Babel config, it will use that to transform your files, ignoring \"node_modules\".\n\n Here's what you can do:\n • To have some of your \"node_modules\" files transformed, you can specify a custom \u001b[1m\"transformIgnorePatterns\"\u001b[22m in your config.\n • If you need a custom transformation specify a \u001b[1m\"transform\"\u001b[22m option in your config.\n • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the \u001b[1m\"moduleNameMapper\"\u001b[22m config option.\n\n You'll find more details and examples of these config options in the docs:\n \u001b[36mhttps://jestjs.io/docs/en/configuration.html\u001b[39m\n\n \u001b[1m\u001b[31mDetails:\u001b[39m\u001b[22m\n\n /c/Users/martin.forre/Projects/Equinor/Fusion/fusion-components/node_modules/@equinor/fusion/lib/index.js:1\n ({\"Object.<anonymous>\":function(module,exports,require,__dirname,__filename,global,jest){export { default as AuthContainer } from \"./auth/AuthContainer\";\n ^^^^^^\n\n SyntaxError: Unexpected token export\n\n \u001b[0m\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 1 | \u001b[39m\u001b[36mimport\u001b[39m { useFusionContext } from \u001b[32m\"@equinor/fusion\"\u001b[39m\u001b[33m;\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m | \u001b[39m\u001b[31m\u001b[1m^\u001b[22m\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 2 | \u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 3 | \u001b[39m\u001b[36mexport\u001b[39m \u001b[36mdefault\u001b[39m ()\u001b[33m:\u001b[39m \u001b[33mHTMLElement\u001b[39m \u001b[33m|\u001b[39m \u001b[36mnull\u001b[39m \u001b[33m=>\u001b[39m {\u001b[0m\n \u001b[0m \u001b[90m 4 | \u001b[39m \u001b[36mconst\u001b[39m fusionContext \u001b[33m=\u001b[39m useFusionContext()\u001b[33m;\u001b[39m\u001b[0m\n\n \u001b[2mat ScriptTransformer._transformAndBuildScript (\u001b[22mnode_modules/@jest/transform/build/ScriptTransformer.js\u001b[2m:471:17)\u001b[22m\n \u001b[2mat ScriptTransformer.transform (\u001b[22mnode_modules/@jest/transform/build/ScriptTransformer.js\u001b[2m:513:25)\u001b[22m\n \u001b[2mat Object.<anonymous> (\u001b[22msrc/hooks/useOverlayContainer.ts\u001b[2m:1:1)\u001b[22m\n","name":"/c/Users/martin.forre/Projects/Equinor/Fusion/fusion-components/src/hooks/__tests__/useClickOutsideOverlayPortal.test.js","startTime":1561388576698,"status":"failed","summary":""},{"assertionResults":[],"coverage":{},"endTime":1561388576698,"message":" \u001b[1m● \u001b[22mTest suite failed to run\n\n \u001b[1m\u001b[31mJest encountered an unexpected token\u001b[39m\u001b[22m\n\n This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript.\n\n By default, if Jest sees a Babel config, it will use that to transform your files, ignoring \"node_modules\".\n\n Here's what you can do:\n • To have some of your \"node_modules\" files transformed, you can specify a custom \u001b[1m\"transformIgnorePatterns\"\u001b[22m in your config.\n • If you need a custom transformation specify a \u001b[1m\"transform\"\u001b[22m option in your config.\n • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the \u001b[1m\"moduleNameMapper\"\u001b[22m config option.\n\n You'll find more details and examples of these config options in the docs:\n \u001b[36mhttps://jestjs.io/docs/en/configuration.html\u001b[39m\n\n \u001b[1m\u001b[31mDetails:\u001b[39m\u001b[22m\n\n /c/Users/martin.forre/Projects/Equinor/Fusion/fusion-components/node_modules/@equinor/fusion/lib/index.js:1\n ({\"Object.<anonymous>\":function(module,exports,require,__dirname,__filename,global,jest){export { default as AuthContainer } from \"./auth/AuthContainer\";\n ^^^^^^\n\n SyntaxError: Unexpected token export\n\n \u001b[0m\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 1 | \u001b[39m\u001b[36mimport\u001b[39m { useFusionContext } from \u001b[32m\"@equinor/fusion\"\u001b[39m\u001b[33m;\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m | \u001b[39m\u001b[31m\u001b[1m^\u001b[22m\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 2 | \u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 3 | \u001b[39m\u001b[36mexport\u001b[39m \u001b[36mdefault\u001b[39m ()\u001b[33m:\u001b[39m \u001b[33mHTMLElement\u001b[39m \u001b[33m|\u001b[39m \u001b[36mnull\u001b[39m \u001b[33m=>\u001b[39m {\u001b[0m\n \u001b[0m \u001b[90m 4 | \u001b[39m \u001b[36mconst\u001b[39m fusionContext \u001b[33m=\u001b[39m useFusionContext()\u001b[33m;\u001b[39m\u001b[0m\n\n \u001b[2mat ScriptTransformer._transformAndBuildScript (\u001b[22mnode_modules/@jest/transform/build/ScriptTransformer.js\u001b[2m:471:17)\u001b[22m\n \u001b[2mat ScriptTransformer.transform (\u001b[22mnode_modules/@jest/transform/build/ScriptTransformer.js\u001b[2m:513:25)\u001b[22m\n \u001b[2mat Object.<anonymous> (\u001b[22msrc/hooks/useOverlayContainer.ts\u001b[2m:1:1)\u001b[22m\n","name":"/c/Users/martin.forre/Projects/Equinor/Fusion/fusion-components/src/hooks/__tests__/useOverlayContainer.test.js","startTime":1561388576698,"status":"failed","summary":""},{"assertionResults":[],"coverage":{},"endTime":1561388576698,"message":" \u001b[1m● \u001b[22mTest suite failed to run\n\n \u001b[1m\u001b[31mJest encountered an unexpected token\u001b[39m\u001b[22m\n\n This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript.\n\n By default, if Jest sees a Babel config, it will use that to transform your files, ignoring \"node_modules\".\n\n Here's what you can do:\n • To have some of your \"node_modules\" files transformed, you can specify a custom \u001b[1m\"transformIgnorePatterns\"\u001b[22m in your config.\n • If you need a custom transformation specify a \u001b[1m\"transform\"\u001b[22m option in your config.\n • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the \u001b[1m\"moduleNameMapper\"\u001b[22m config option.\n\n You'll find more details and examples of these config options in the docs:\n \u001b[36mhttps://jestjs.io/docs/en/configuration.html\u001b[39m\n\n \u001b[1m\u001b[31mDetails:\u001b[39m\u001b[22m\n\n /c/Users/martin.forre/Projects/Equinor/Fusion/fusion-components/node_modules/@equinor/fusion/lib/index.js:1\n ({\"Object.<anonymous>\":function(module,exports,require,__dirname,__filename,global,jest){export { default as AuthContainer } from \"./auth/AuthContainer\";\n ^^^^^^\n\n SyntaxError: Unexpected token export\n\n \u001b[0m \u001b[90m 2 | \u001b[39m\u001b[36mimport\u001b[39m { \u001b[33mReactNode\u001b[39m\u001b[33m,\u001b[39m useRef\u001b[33m,\u001b[39m useEffect } from \u001b[32m'react'\u001b[39m\u001b[33m;\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 3 | \u001b[39m\u001b[36mimport\u001b[39m \u001b[33m*\u001b[39m as \u001b[33mReactDOM\u001b[39m from \u001b[32m'react-dom'\u001b[39m\u001b[33m;\u001b[39m\u001b[0m\n \u001b[0m\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 4 | \u001b[39m\u001b[36mimport\u001b[39m { \u001b[33mFusionContext\u001b[39m\u001b[33m,\u001b[39m useFusionContext } from \u001b[32m'@equinor/fusion'\u001b[39m\u001b[33m;\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m | \u001b[39m\u001b[31m\u001b[1m^\u001b[22m\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 5 | \u001b[39m\u001b[36mimport\u001b[39m useOverlayContainer from \u001b[32m'./useOverlayContainer'\u001b[39m\u001b[33m;\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 6 | \u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 7 | \u001b[39m\u001b[36mexport\u001b[39m \u001b[36mdefault\u001b[39m (isVisible\u001b[33m:\u001b[39m \u001b[33mBoolean\u001b[39m\u001b[33m,\u001b[39m content\u001b[33m:\u001b[39m \u001b[33mReactNode\u001b[39m)\u001b[33m:\u001b[39m \u001b[36mvoid\u001b[39m \u001b[33m=>\u001b[39m {\u001b[0m\n\n \u001b[2mat ScriptTransformer._transformAndBuildScript (\u001b[22mnode_modules/@jest/transform/build/ScriptTransformer.js\u001b[2m:471:17)\u001b[22m\n \u001b[2mat ScriptTransformer.transform (\u001b[22mnode_modules/@jest/transform/build/ScriptTransformer.js\u001b[2m:513:25)\u001b[22m\n \u001b[2mat Object.<anonymous> (\u001b[22msrc/hooks/useOverlayPortal.tsx\u001b[2m:4:1)\u001b[22m\n","name":"/c/Users/martin.forre/Projects/Equinor/Fusion/fusion-components/src/hooks/__tests__/useOverlayPortal.test.js","startTime":1561388576698,"status":"failed","summary":""},{"assertionResults":[{"ancestorTitles":["useEventListener"],"failureMessages":[],"fullName":"useEventListener Should call addEventListener on the node","location":null,"status":"passed","title":"Should call addEventListener on the node"},{"ancestorTitles":["useEventListener"],"failureMessages":[],"fullName":"useEventListener Should call removeEventListener on unmount","location":null,"status":"passed","title":"Should call removeEventListener on unmount"},{"ancestorTitles":["useEventListener"],"failureMessages":[],"fullName":"useEventListener Should not call removeEventListener before unmount","location":null,"status":"passed","title":"Should not call removeEventListener before unmount"},{"ancestorTitles":["useEventListener"],"failureMessages":[],"fullName":"useEventListener Should re-attach event listener when a dependency changes","location":null,"status":"passed","title":"Should re-attach event listener when a dependency changes"},{"ancestorTitles":["useEventListener"],"failureMessages":[],"fullName":"useEventListener Should default to useCapture = false","location":null,"status":"passed","title":"Should default to useCapture = false"},{"ancestorTitles":["useEventListener"],"failureMessages":[],"fullName":"useEventListener Should respect useCapture when passed","location":null,"status":"passed","title":"Should respect useCapture when passed"},{"ancestorTitles":["useEventListener"],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mnot\u001b[2m.\u001b[22mtoThrow\u001b[2m()\u001b[22m\n\nError name: \u001b[31m\"TypeError\"\u001b[39m\nError message: \u001b[31m\"Invalid attempt to spread non-iterable instance\"\u001b[39m\n\n \u001b[0m \u001b[90m 10 | \u001b[39m useEffect(() \u001b[33m=>\u001b[39m {\u001b[0m\n \u001b[0m \u001b[90m 11 | \u001b[39m \u001b[36mif\u001b[39m (node \u001b[33m==\u001b[39m \u001b[36mnull\u001b[39m) {\u001b[0m\n \u001b[0m\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 12 | \u001b[39m \u001b[36mreturn\u001b[39m\u001b[33m;\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m | \u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 13 | \u001b[39m }\u001b[0m\n \u001b[0m \u001b[90m 14 | \u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 15 | \u001b[39m node\u001b[33m.\u001b[39maddEventListener(eventType\u001b[33m,\u001b[39m handler\u001b[33m,\u001b[39m useCapture)\u001b[33m;\u001b[39m\u001b[0m\n\n \u001b[2mat _nonIterableSpread (\u001b[22msrc/hooks/useEventListener.ts\u001b[2m:12:39)\u001b[22m\n \u001b[2mat _toConsumableArray (\u001b[22msrc/hooks/useEventListener.ts\u001b[2m:10:95)\u001b[22m\n \u001b[2mat _default (\u001b[22msrc/hooks/useEventListener.ts\u001b[2m:10:5)\u001b[22m\n \u001b[2mat \u001b[22msrc/hooks/__tests__/useEventListener.test.js\u001b[2m:115:17\u001b[22m\n \u001b[2mat useHook (\u001b[22msrc/hooks/__tests__/hookTestScope.tsx\u001b[2m:9:5)\u001b[22m\n \u001b[2mat renderWithHooks (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:12938:18)\u001b[22m\n \u001b[2mat mountIndeterminateComponent (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:15020:13)\u001b[22m\n \u001b[2mat beginWork (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:15625:16)\u001b[22m\n \u001b[2mat performUnitOfWork (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:19312:12)\u001b[22m\n \u001b[2mat workLoop (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:19352:24)\u001b[22m\n \u001b[2mat renderRoot (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:19435:7)\u001b[22m\n \u001b[2mat performWorkOnRoot (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:20342:7)\u001b[22m\n \u001b[2mat requestWork (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:20090:7)\u001b[22m\n \u001b[2mat scheduleWork (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:19911:5)\u001b[22m\n \u001b[2mat scheduleRootUpdate (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:20572:3)\u001b[22m\n \u001b[2mat updateContainerAtExpirationTime (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:20600:10)\u001b[22m\n \u001b[2mat updateContainer (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:20657:10)\u001b[22m\n \u001b[2mat ReactRoot.Object.<anonymous>.ReactRoot.render (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:20953:3)\u001b[22m\n \u001b[2mat \u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:21090:14\u001b[22m\n \u001b[2mat unbatchedUpdates (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:20454:14)\u001b[22m\n \u001b[2mat legacyRenderSubtreeIntoContainer (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:21086:5)\u001b[22m\n \u001b[2mat Object.render (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:21155:12)\u001b[22m\n \u001b[2mat render (\u001b[22mnode_modules/enzyme-adapter-react-16/src/ReactSixteenAdapter.js\u001b[2m:378:26)\u001b[22m\n \u001b[2mat fn (\u001b[22mnode_modules/enzyme-adapter-react-16/src/ReactSixteenAdapter.js\u001b[2m:305:37)\u001b[22m\n \u001b[2mat Object.batchedUpdates$1 [as unstable_batchedUpdates] (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:20439:12)\u001b[22m\n \u001b[2mat Object.act (\u001b[22mnode_modules/react-dom/cjs/react-dom-test-utils.development.js\u001b[2m:1161:27)\u001b[22m\n \u001b[2mat act (\u001b[22mnode_modules/enzyme-adapter-react-16/src/ReactSixteenAdapter.js\u001b[2m:305:13)\u001b[22m\n \u001b[2mat Object.wrapAct [as render] (\u001b[22mnode_modules/enzyme-adapter-react-16/src/ReactSixteenAdapter.js\u001b[2m:364:16)\u001b[22m\n \u001b[2mat new ReactWrapper (\u001b[22mnode_modules/enzyme/build/ReactWrapper.js\u001b[2m:134:16)\u001b[22m\n \u001b[2mat mount (\u001b[22mnode_modules/enzyme/build/mount.js\u001b[2m:21:10)\u001b[22m\n \u001b[2mat hookTestScope (\u001b[22msrc/hooks/__tests__/hookTestScope.tsx\u001b[2m:23:15)\u001b[22m\n \u001b[2mat \u001b[22msrc/hooks/__tests__/useEventListener.test.js\u001b[2m:114:13\u001b[22m\n \u001b[2mat Object.<anonymous> (\u001b[22mnode_modules/expect/build/toThrowMatchers.js\u001b[2m:81:11)\u001b[22m\n \u001b[2mat Object.throwingMatcher [as toThrow] (\u001b[22mnode_modules/expect/build/index.js\u001b[2m:342:33)\u001b[22m\n \u001b[2mat Object.toThrow (\u001b[22msrc/hooks/__tests__/useEventListener.test.js\u001b[2m:117:16)\u001b[22m\n at Object.toThrow (/c/Users/martin.forre/Projects/Equinor/Fusion/fusion-components/src/hooks/__tests__/useEventListener.test.js:117:16)\n at Object.asyncJestTest (/c/Users/martin.forre/Projects/Equinor/Fusion/fusion-components/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37)\n at resolve (/c/Users/martin.forre/Projects/Equinor/Fusion/fusion-components/node_modules/jest-jasmine2/build/queueRunner.js:43:12)\n at new Promise (<anonymous>)\n at mapper (/c/Users/martin.forre/Projects/Equinor/Fusion/fusion-components/node_modules/jest-jasmine2/build/queueRunner.js:26:19)\n at promise.then (/c/Users/martin.forre/Projects/Equinor/Fusion/fusion-components/node_modules/jest-jasmine2/build/queueRunner.js:73:41)\n at process.internalTickCallback (internal/process/next_tick.js:77:7)"],"fullName":"useEventListener Should handle undefined node","location":null,"status":"failed","title":"Should handle undefined node"}],"endTime":1561388574870,"message":"\u001b[1m\u001b[31m \u001b[1m● \u001b[1museEventListener › Should handle undefined node\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mnot\u001b[2m.\u001b[22mtoThrow\u001b[2m()\u001b[22m\n\n Error name: \u001b[31m\"TypeError\"\u001b[39m\n Error message: \u001b[31m\"Invalid attempt to spread non-iterable instance\"\u001b[39m\n\n \u001b[0m \u001b[90m 10 | \u001b[39m useEffect(() \u001b[33m=>\u001b[39m {\u001b[0m\n \u001b[0m \u001b[90m 11 | \u001b[39m \u001b[36mif\u001b[39m (node \u001b[33m==\u001b[39m \u001b[36mnull\u001b[39m) {\u001b[0m\n \u001b[0m\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 12 | \u001b[39m \u001b[36mreturn\u001b[39m\u001b[33m;\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m | \u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 13 | \u001b[39m }\u001b[0m\n \u001b[0m \u001b[90m 14 | \u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 15 | \u001b[39m node\u001b[33m.\u001b[39maddEventListener(eventType\u001b[33m,\u001b[39m handler\u001b[33m,\u001b[39m useCapture)\u001b[33m;\u001b[39m\u001b[0m\n\n \u001b[2mat _nonIterableSpread (\u001b[22msrc/hooks/useEventListener.ts\u001b[2m:12:39)\u001b[22m\n \u001b[2mat _toConsumableArray (\u001b[22msrc/hooks/useEventListener.ts\u001b[2m:10:95)\u001b[22m\n \u001b[2mat _default (\u001b[22msrc/hooks/useEventListener.ts\u001b[2m:10:5)\u001b[22m\n \u001b[2mat \u001b[22msrc/hooks/__tests__/useEventListener.test.js\u001b[2m:115:17\u001b[22m\n \u001b[2mat useHook (\u001b[22msrc/hooks/__tests__/hookTestScope.tsx\u001b[2m:9:5)\u001b[22m\n \u001b[2mat renderWithHooks (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:12938:18)\u001b[22m\n \u001b[2mat mountIndeterminateComponent (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:15020:13)\u001b[22m\n \u001b[2mat beginWork (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:15625:16)\u001b[22m\n \u001b[2mat performUnitOfWork (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:19312:12)\u001b[22m\n \u001b[2mat workLoop (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:19352:24)\u001b[22m\n \u001b[2mat renderRoot (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:19435:7)\u001b[22m\n \u001b[2mat performWorkOnRoot (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:20342:7)\u001b[22m\n \u001b[2mat requestWork (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:20090:7)\u001b[22m\n \u001b[2mat scheduleWork (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:19911:5)\u001b[22m\n \u001b[2mat scheduleRootUpdate (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:20572:3)\u001b[22m\n \u001b[2mat updateContainerAtExpirationTime (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:20600:10)\u001b[22m\n \u001b[2mat updateContainer (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:20657:10)\u001b[22m\n \u001b[2mat ReactRoot.Object.<anonymous>.ReactRoot.render (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:20953:3)\u001b[22m\n \u001b[2mat \u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:21090:14\u001b[22m\n \u001b[2mat unbatchedUpdates (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:20454:14)\u001b[22m\n \u001b[2mat legacyRenderSubtreeIntoContainer (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:21086:5)\u001b[22m\n \u001b[2mat Object.render (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:21155:12)\u001b[22m\n \u001b[2mat render (\u001b[22mnode_modules/enzyme-adapter-react-16/src/ReactSixteenAdapter.js\u001b[2m:378:26)\u001b[22m\n \u001b[2mat fn (\u001b[22mnode_modules/enzyme-adapter-react-16/src/ReactSixteenAdapter.js\u001b[2m:305:37)\u001b[22m\n \u001b[2mat Object.batchedUpdates$1 [as unstable_batchedUpdates] (\u001b[22mnode_modules/react-dom/cjs/react-dom.development.js\u001b[2m:20439:12)\u001b[22m\n \u001b[2mat Object.act (\u001b[22mnode_modules/react-dom/cjs/react-dom-test-utils.development.js\u001b[2m:1161:27)\u001b[22m\n \u001b[2mat act (\u001b[22mnode_modules/enzyme-adapter-react-16/src/ReactSixteenAdapter.js\u001b[2m:305:13)\u001b[22m\n \u001b[2mat Object.wrapAct [as render] (\u001b[22mnode_modules/enzyme-adapter-react-16/src/ReactSixteenAdapter.js\u001b[2m:364:16)\u001b[22m\n \u001b[2mat new ReactWrapper (\u001b[22mnode_modules/enzyme/build/ReactWrapper.js\u001b[2m:134:16)\u001b[22m\n \u001b[2mat mount (\u001b[22mnode_modules/enzyme/build/mount.js\u001b[2m:21:10)\u001b[22m\n \u001b[2mat hookTestScope (\u001b[22msrc/hooks/__tests__/hookTestScope.tsx\u001b[2m:23:15)\u001b[22m\n \u001b[2mat \u001b[22msrc/hooks/__tests__/useEventListener.test.js\u001b[2m:114:13\u001b[22m\n \u001b[2mat Object.<anonymous> (\u001b[22mnode_modules/expect/build/toThrowMatchers.js\u001b[2m:81:11)\u001b[22m\n \u001b[2mat Object.throwingMatcher [as toThrow] (\u001b[22mnode_modules/expect/build/index.js\u001b[2m:342:33)\u001b[22m\n \u001b[2mat Object.toThrow (\u001b[22msrc/hooks/__tests__/useEventListener.test.js\u001b[2m:117:16)\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 115 | \u001b[39m useEventListener(\u001b[36mnull\u001b[39m\u001b[33m,\u001b[39m \u001b[32m'click'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {})\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 116 | \u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m\u001b[31m\u001b[1m>\u001b[2m\u001b[39m\u001b[90m 117 | \u001b[39m })\u001b[33m.\u001b[39mnot\u001b[33m.\u001b[39mtoThrow()\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m | \u001b[39m \u001b[31m\u001b[1m^\u001b[2m\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 118 | \u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 119 | \u001b[39m})\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 120 | \u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toThrow (\u001b[2m\u001b[0m\u001b[36msrc/hooks/__tests__/useEventListener.test.js\u001b[39m\u001b[0m\u001b[2m:117:16)\u001b[2m\u001b[22m\n","name":"/c/Users/martin.forre/Projects/Equinor/Fusion/fusion-components/src/hooks/__tests__/useEventListener.test.js","startTime":1561388568258,"status":"failed","summary":""},{"assertionResults":[],"coverage":{},"endTime":1561388576698,"message":" \u001b[1m● \u001b[22mTest suite failed to run\n\n \u001b[1m\u001b[31mJest encountered an unexpected token\u001b[39m\u001b[22m\n\n This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript.\n\n By default, if Jest sees a Babel config, it will use that to transform your files, ignoring \"node_modules\".\n\n Here's what you can do:\n • To have some of your \"node_modules\" files transformed, you can specify a custom \u001b[1m\"transformIgnorePatterns\"\u001b[22m in your config.\n • If you need a custom transformation specify a \u001b[1m\"transform\"\u001b[22m option in your config.\n • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the \u001b[1m\"moduleNameMapper\"\u001b[22m config option.\n\n You'll find more details and examples of these config options in the docs:\n \u001b[36mhttps://jestjs.io/docs/en/configuration.html\u001b[39m\n\n \u001b[1m\u001b[31mDetails:\u001b[39m\u001b[22m\n\n /c/Users/martin.forre/Projects/Equinor/Fusion/fusion-components/node_modules/@equinor/fusion/lib/index.js:1\n ({\"Object.<anonymous>\":function(module,exports,require,__dirname,__filename,global,jest){export { default as AuthContainer } from \"./auth/AuthContainer\";\n ^^^^^^\n\n SyntaxError: Unexpected token export\n\n \u001b[0m \u001b[90m 1 | \u001b[39m\u001b[36mimport\u001b[39m \u001b[33m*\u001b[39m as \u001b[33mReact\u001b[39m from \u001b[32m'react'\u001b[39m\u001b[33m;\u001b[39m\u001b[0m\n \u001b[0m\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 2 | \u001b[39m\u001b[36mimport\u001b[39m { useComponentDisplayType } from \u001b[32m'@equinor/fusion'\u001b[39m\u001b[33m;\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m | \u001b[39m\u001b[31m\u001b[1m^\u001b[22m\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 3 | \u001b[39m\u001b[36mimport\u001b[39m \u001b[33mButtonComponent\u001b[39m from \u001b[32m'./components/Button'\u001b[39m\u001b[33m;\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 4 | \u001b[39m\u001b[36mimport\u001b[39m \u001b[33mAnchorComponent\u001b[39m from \u001b[32m'./components/Anchor'\u001b[39m\u001b[33m;\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 5 | \u001b[39m\u001b[36mconst\u001b[39m \u001b[33mButton\u001b[39m \u001b[33m=\u001b[39m \u001b[33mReact\u001b[39m\u001b[33m.\u001b[39mforwardRef((props\u001b[33m,\u001b[39m ref) \u001b[33m=>\u001b[39m {\u001b[0m\n\n \u001b[2mat ScriptTransformer._transformAndBuildScript (\u001b[22mnode_modules/@jest/transform/build/ScriptTransformer.js\u001b[2m:471:17)\u001b[22m\n \u001b[2mat ScriptTransformer.transform (\u001b[22mnode_modules/@jest/transform/build/ScriptTransformer.js\u001b[2m:513:25)\u001b[22m\n \u001b[2mat Object.<anonymous> (\u001b[22mdist/components/general/Button/index.js\u001b[2m:2:1)\u001b[22m\n","name":"/c/Users/martin.forre/Projects/Equinor/Fusion/fusion-components/dist/components/general/Tabs/__stories__/TabContent.js","startTime":1561388576698,"status":"failed","summary":""},{"assertionResults":[],"coverage":{},"endTime":1561388576698,"message":" \u001b[1m● \u001b[22mTest suite failed to run\n\n Cannot find module 'immutable' from 'useRelativePositioning.test.js'\n\n \u001b[0m \u001b[90m 3 | \u001b[39m\u001b[36mimport\u001b[39m { hookTestScope } from \u001b[32m'./hookTestScope'\u001b[39m\u001b[33m;\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 4 | \u001b[39m\u001b[36mimport\u001b[39m useRelativePositioning from \u001b[32m'../useRelativePositioning'\u001b[39m\u001b[33m;\u001b[39m\u001b[0m\n \u001b[0m\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 5 | \u001b[39m\u001b[36mimport\u001b[39m { is } from \u001b[32m'immutable'\u001b[39m\u001b[33m;\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m | \u001b[39m\u001b[31m\u001b[1m^\u001b[22m\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 6 | \u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 7 | \u001b[39m\u001b[36mconst\u001b[39m mockedRef \u001b[33m=\u001b[39m {\u001b[0m\n \u001b[0m \u001b[90m 8 | \u001b[39m current\u001b[33m:\u001b[39m {\u001b[0m\n\n \u001b[2mat Resolver.resolveModule (\u001b[22mnode_modules/jest-resolve/build/index.js\u001b[2m:230:17)\u001b[22m\n \u001b[2mat Object.<anonymous> (\u001b[22m\u001b[0m\u001b[36msrc/hooks/__tests__/useRelativePositioning.test.js\u001b[39m\u001b[0m\u001b[2m:5:1)\u001b[22m\n","name":"/c/Users/martin.forre/Projects/Equinor/Fusion/fusion-components/src/hooks/__tests__/useRelativePositioning.test.js","startTime":1561388576698,"status":"failed","summary":""}],"wasInterrupted":false}