Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't run jest tests #4

Open
yandiro opened this issue Jan 31, 2023 · 0 comments
Open

Couldn't run jest tests #4

yandiro opened this issue Jan 31, 2023 · 0 comments

Comments

@yandiro
Copy link

yandiro commented Jan 31, 2023

After upgrading to React 18 / Node 18, I had to stop using promise-hash to start using RSVP because the tests would not know how to deal with it.

This is the message after running "yarn test"

TypeError: Cannot read properties of undefined (reading 'hash')
import 'promise-hash';
at node_modules/promise-hash/lib/promise-hash. js: 5:35
at Object. «anonymous» (node_modules/promise-hash/lib/promise-hash. js: 10:2)
at Object.<anonymous> (node modules/promise-hash/index.js: 1:14)
at Object.<anonymous> (sc/App.js: 8:1)
at Object.<anonymous> (sc/tests/OrderItem.test.js: 1:1)
at TestScheduler.scheduleTests (node modules/@jest/core/build/TestScheduler. js: 333:13)
runJest (node_modules/@jest/core/build/runJest.js: 404:19)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant