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

attempt 2: upgrade jest to fix broken tests due to modules imports #55

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

fedordikarev
Copy link
Contributor

That fixes error with test/webhooks.test.ts:

ENOENT: no such file or directory, open 'node:path'

Issue was due to some packages started to use require("node:path") imports format, that wasn't support by Jest 26.
It was addressed and fixed in jestjs/jest#11637, so upgrading Jest would work there.

In previous attempt I mixed npm and yarn, so result was broken. Now just limit changes to jest only and use yarn install.

@fedordikarev
Copy link
Contributor Author

I narrow changes here only to upgrading jest, and related changes.
I checked on my repo that it should fix the broken test: fedordikarev#3

As I updated only devDependencies that shouldn't affect production container, although could be worth to update versions later.

@antelman107 can you take a look?

@antelman107 antelman107 merged commit e3be463 into neondatabase:main Aug 26, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants