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

Upgrade jsdom to fix test errors #28

Merged
merged 1 commit into from
Sep 21, 2023
Merged

Upgrade jsdom to fix test errors #28

merged 1 commit into from
Sep 21, 2023

Conversation

cwmanning
Copy link
Member

npm test failed with error text like this:

Error: The module 'node_modules/canvas/build/Release/canvas.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 93. This version of Node.js requires
NODE_MODULE_VERSION 108.
canvas was compiled against a different Node.js version

Version 93 is a v16 release, but the project version is on 18 now. A uninstall and a new install -D got the jsdom tests working.

`npm test` failed with error text like this:

```
Error: The module 'node_modules/canvas/build/Release/canvas.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 93. This version of Node.js requires
NODE_MODULE_VERSION 108.
canvas was compiled against a different Node.js version
```

Version 93 is a v16 release, but the project version is on 18 now.

A `uninstall` and a new `install -D` got the jsdom tests working.
@netlify
Copy link

netlify bot commented Sep 21, 2023

Deploy Preview for react-ts-reference-2022 ready!

Name Link
🔨 Latest commit 64377cb
🔍 Latest deploy log https://app.netlify.com/sites/react-ts-reference-2022/deploys/650c71ceeecbcc0008c7af8e
😎 Deploy Preview https://deploy-preview-28--react-ts-reference-2022.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions
Copy link

Coverage after merging fix-jsdom into main

100.00%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   app.tsxN/A100%100%
src.features.auth
   routes.tsxN/A100%100%
   service.tsN/A100%100%
   store.tsN/A100%100%
src.features.auth.components.require-auth
   index.tsxN/A100%100%
src.features.auth.routes.login
   action.tsN/A100%100%
src.features.home
   routes.tsxN/A100%100%
src.features.home.routes.home
   index.tsxN/A100%100%
src.features.http
   api-error.tsN/A100%100%
   client.tsN/A100%100%
src.features.routing
   router.tsxN/A100%100%
   routes.tsxN/A100%100%
   urls.tsN/A100%100%
src.features.routing.components.error-page
   index.tsxN/A100%100%
src.features.routing.components.not-found-page
   index.tsxN/A100%100%
src.features.routing.layouts
   root.tsxN/A100%100%
src.features.theming
   palette.tsN/A100%100%
   store.tsN/A100%100%
   theme-provider.tsxN/A100%100%
   theme.tsN/A100%100%
src.features.theming.components.theme-toggle-button
   index.tsxN/A100%100%
src.features.ui.components.box
   index.tsxN/A100%100%
src.features.ui.components.button
   index.tsxN/A100%100%
src.features.ui.components.counter
   index.tsxN/A100%100%
src.features.ui.components.error-messages
   index.tsxN/A100%100%
src.features.ui.components.link
   index.tsxN/A100%100%

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Device URL
desktop https://650c71ceeecbcc0008c7af8e--react-ts-reference-2022.netlify.app

Device URL
mobile https://650c71ceeecbcc0008c7af8e--react-ts-reference-2022.netlify.app

Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead

@cwmanning cwmanning merged commit b627106 into main Sep 21, 2023
8 checks passed
@cwmanning cwmanning deleted the fix-jsdom branch September 21, 2023 16:42
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