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

tests not running on NodeJS v18 #294

Closed
eklem opened this issue Sep 5, 2022 · 3 comments
Closed

tests not running on NodeJS v18 #294

eklem opened this issue Sep 5, 2022 · 3 comments
Assignees

Comments

@eklem
Copy link
Collaborator

eklem commented Sep 5, 2022

  Uncaught exception in test/test.js

  TypeError: Cannot destructure property 'payload' of 'sourceMap' as it is null.

  › file:///Users/eklem/github_modules/stopword/node_modules/mem/dist/index.js:42:27
  › file:///Users/eklem/github_modules/stopword/node_modules/mem/dist/index.js:42:27

  ✔ passes serially
  ✖ Internal error when running test/test.js
  TypeError: Cannot destructure property 'payload' of 'sourceMap' as it is null.
  TypeError: Cannot destructure property 'payload' of 'sourceMap' as it is null.
      at file:///Users/eklem/github_modules/stopword/node_modules/ava/lib/snapshot-manager.js:398:9
      at file:///Users/eklem/github_modules/stopword/node_modules/mem/dist/index.js:42:27
      at mem.cacheKey.file.file (file:///Users/eklem/github_modules/stopword/node_modules/ava/lib/snapshot-manager.js:409:31)
      at file:///Users/eklem/github_modules/stopword/node_modules/mem/dist/index.js:42:27
      at determineSnapshotPaths (file:///Users/eklem/github_modules/stopword/node_modules/ava/lib/snapshot-manager.js:428:14)
      at load (file:///Users/eklem/github_modules/stopword/node_modules/ava/lib/snapshot-manager.js:468:16)
      at get snapshots [as snapshots] (file:///Users/eklem/github_modules/stopword/node_modules/ava/lib/runner.js:204:21)
      at Runner.saveSnapshotState (file:///Users/eklem/github_modules/stopword/node_modules/ava/lib/runner.js:228:36)
      at file:///Users/eklem/github_modules/stopword/node_modules/ava/lib/worker/base.js:84:40
      at /Users/eklem/github_modules/stopword/node_modules/emittery/index.js:319:13


  ✖ test/test.js exited with a non-zero exit code: 1


  1 test passed
  1 uncaught exception

Seems to be an AvaJS - NodeJS v18 problem...

@eklem
Copy link
Collaborator Author

eklem commented Sep 5, 2022

The issue seems to be Node v18.8.0: nodejs/node#44391

Tried v18.7.0 and that worked, so just wait for 18.9.0 ?

@eklem
Copy link
Collaborator Author

eklem commented Sep 5, 2022

Batr needs to be updated with latest AvaJS version (4.3.3) to work with NodeJS v18.8.0.

eklem added a commit that referenced this issue Sep 5, 2022
AvaJS had issues with NodeJS v18.8.0
Fixed with AvaJS latest (v4.3.3)
@eklem
Copy link
Collaborator Author

eklem commented Sep 5, 2022

Fixed with 05cbfdc

@eklem eklem closed this as completed Sep 5, 2022
@eklem eklem self-assigned this Sep 5, 2022
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