Skip to content

Min example to display subtle crypto ArrayBuffer issue

Notifications You must be signed in to change notification settings

MGibson1/jest-jsdom-issue

Repository files navigation

Repository displays a type coercion error with Node18 when using the jsdom test environment.

This issue is not caused by jsdom, as converting to testEnvironment: 'node' and injecting a new JSDOM() resolves the issue.

I have followed the recommendation to override JSDOM in package.json to 22.1.0, but the issue persists.

The main branch displays the issue, while the testEnvironment-node branch shows that the issue is resolved by using the node test environment and instantiating JSDOM manually.

About

Min example to display subtle crypto ArrayBuffer issue

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published