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

test: update jest #1792

Merged
merged 1 commit into from
Sep 24, 2023
Merged

test: update jest #1792

merged 1 commit into from
Sep 24, 2023

Conversation

SethFalco
Copy link
Member

Locally and on CI the tests sometimes hang at the end, but I don't see any obvious errors in our test suite. 🤔

Before investigating further, I think it'd be best to just update Jest and see how it goes. So far, I've been unable to reproduce the issue with this.

"del": "^6.0.0",
"eslint": "^8.24.0",
"jest": "^29.1.2",
"jest": "^29.5.5",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can import from @jest/globals to get types instead of @types/jest

Copy link
Member Author

@SethFalco SethFalco Sep 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's unclear to me how to use @jest/globals properly when the package isn't declared as a module. When I use require, nothing works as expected, and I can't import the types with @typedef. 🤔

Despite this, the tests do pass. I'm just struggling with the TypeScript integration.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right. Forgot we don't use ts syntax.

@SethFalco SethFalco merged commit 82593c6 into svg:main Sep 24, 2023
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