Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Remove --forceExit from jest #28

Closed
alex-page opened this issue Aug 8, 2018 · 0 comments · Fixed by #34
Closed

Remove --forceExit from jest #28

alex-page opened this issue Aug 8, 2018 · 0 comments · Fixed by #34

Comments

@alex-page
Copy link
Contributor

alex-page commented Aug 8, 2018

We had to temporarily add --forceExit to our jest unit test as promises in lodash caused the tests to not complete.

jestjs/jest#6716

(node:1029) UnhandledPromiseRejectionWarning: File not found: /Users/alexpage/Sites/dta/furnace/node_modules/@gov.au/animate/lib/js/module.js
(node:1029) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1029) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:1029) UnhandledPromiseRejectionWarning: File not found: /Users/alexpage/Sites/dta/furnace/node_modules/@gov.au/accordion/lib/js/react.js
(node:1029) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:1029) UnhandledPromiseRejectionWarning: File not found: /Users/alexpage/Sites/dta/furnace/node_modules/@gov.au/animate/lib/js/module.js
(node:1029) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
Jest has detected the following 3 open handles potentially keeping Jest from exiting:

  ●  PROMISE

          at Function.resolve (<anonymous>)
      at Object.<anonymous> (node_modules/lodash/_getTag.js:37:32)
      at Object.<anonymous> (node_modules/lodash/_baseClone.js:12:14)


  ●  PROMISE

          at Function.resolve (<anonymous>)
      at Object.<anonymous> (node_modules/lodash/_getTag.js:37:32)
      at Object.<anonymous> (node_modules/lodash/_baseClone.js:12:14)


  ●  PROMISE

          at Function.resolve (<anonymous>)
      at Object.<anonymous> (node_modules/lodash/_getTag.js:37:32)
      at Object.<anonymous> (node_modules/lodash/_baseClone.js:12:14)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant