jest-environment-jsdom
Advanced tools
Comparing version 28.1.3 to 29.0.0-alpha.0
@@ -9,2 +9,4 @@ /** | ||
/// <reference lib="dom" /> | ||
import type {Context} from 'vm'; | ||
@@ -15,3 +17,2 @@ import type {EnvironmentContext} from '@jest/environment'; | ||
import type {JestEnvironmentConfig} from '@jest/environment'; | ||
import {JSDOM} from 'jsdom'; | ||
import {LegacyFakeTimers} from '@jest/fake-timers'; | ||
@@ -22,3 +23,3 @@ import {ModernFakeTimers} from '@jest/fake-timers'; | ||
declare class JSDOMEnvironment implements JestEnvironment<number> { | ||
dom: JSDOM | null; | ||
private dom; | ||
fakeTimers: LegacyFakeTimers<number> | null; | ||
@@ -25,0 +26,0 @@ fakeTimersModern: ModernFakeTimers | null; |
@@ -54,3 +54,6 @@ 'use strict'; | ||
*/ | ||
/// <reference lib="dom" /> | ||
// @ts-expect-error: TODO: we're missing v20 types | ||
class JSDOMEnvironment { | ||
// TODO: make non-privat when we have `@types/jsdom` again | ||
dom; | ||
@@ -69,3 +72,4 @@ fakeTimers; | ||
omitJSDOMErrors: true | ||
}); | ||
}); // @ts-expect-error: TODO: we're missing v20 types | ||
virtualConsole.on('jsdomError', error => { | ||
@@ -72,0 +76,0 @@ context.console.error(error); |
{ | ||
"name": "jest-environment-jsdom", | ||
"version": "28.1.3", | ||
"version": "29.0.0-alpha.0", | ||
"repository": { | ||
@@ -20,16 +20,15 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/environment": "^28.1.3", | ||
"@jest/fake-timers": "^28.1.3", | ||
"@jest/types": "^28.1.3", | ||
"@types/jsdom": "^16.2.4", | ||
"@jest/environment": "^29.0.0-alpha.0", | ||
"@jest/fake-timers": "^29.0.0-alpha.0", | ||
"@jest/types": "^29.0.0-alpha.0", | ||
"@types/node": "*", | ||
"jest-mock": "^28.1.3", | ||
"jest-util": "^28.1.3", | ||
"jsdom": "^19.0.0" | ||
"jest-mock": "^29.0.0-alpha.0", | ||
"jest-util": "^29.0.0-alpha.0", | ||
"jsdom": "^20.0.0" | ||
}, | ||
"devDependencies": { | ||
"@jest/test-utils": "^28.1.3" | ||
"@jest/test-utils": "^29.0.0-alpha.0" | ||
}, | ||
"engines": { | ||
"node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" | ||
"node": "^14.15.0 || ^16.10.0 || >=18.0.0" | ||
}, | ||
@@ -39,3 +38,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "2cce069800dab3fc8ca7c469b32d2e2b2f7e2bb1" | ||
"gitHead": "6862afb00307b52f32eedee977a9b3041355f184" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9429
7
214
2
+ Added@jest/environment@29.7.0(transitive)
+ Added@jest/fake-timers@29.7.0(transitive)
+ Added@jest/schemas@29.6.3(transitive)
+ Added@jest/types@29.6.3(transitive)
+ Added@sinclair/typebox@0.27.8(transitive)
+ Added@sinonjs/commons@3.0.1(transitive)
+ Added@sinonjs/fake-timers@10.3.0(transitive)
+ Addedacorn-globals@7.0.1(transitive)
+ Addedacorn-walk@8.3.4(transitive)
+ Addedentities@4.5.0(transitive)
+ Addedjest-message-util@29.7.0(transitive)
+ Addedjest-mock@29.7.0(transitive)
+ Addedjest-util@29.7.0(transitive)
+ Addedjsdom@20.0.3(transitive)
+ Addedparse5@7.1.2(transitive)
+ Addedpretty-format@29.7.0(transitive)
+ Addedsaxes@6.0.0(transitive)
+ Addedw3c-xmlserializer@4.0.0(transitive)
- Removed@types/jsdom@^16.2.4
- Removed@jest/environment@28.1.3(transitive)
- Removed@jest/fake-timers@28.1.3(transitive)
- Removed@jest/schemas@28.1.3(transitive)
- Removed@jest/types@28.1.3(transitive)
- Removed@sinclair/typebox@0.24.51(transitive)
- Removed@sinonjs/commons@1.8.6(transitive)
- Removed@sinonjs/fake-timers@9.1.2(transitive)
- Removed@types/jsdom@16.2.15(transitive)
- Removed@types/parse5@6.0.3(transitive)
- Removed@types/tough-cookie@4.0.5(transitive)
- Removedacorn@7.4.1(transitive)
- Removedacorn-globals@6.0.0(transitive)
- Removedacorn-walk@7.2.0(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedbrowser-process-hrtime@1.0.0(transitive)
- Removedjest-message-util@28.1.3(transitive)
- Removedjest-mock@28.1.3(transitive)
- Removedjest-util@28.1.3(transitive)
- Removedjsdom@19.0.0(transitive)
- Removedparse5@6.0.1(transitive)
- Removedpretty-format@28.1.3(transitive)
- Removedsaxes@5.0.1(transitive)
- Removedw3c-hr-time@1.0.2(transitive)
- Removedw3c-xmlserializer@3.0.0(transitive)
- Removedwhatwg-url@10.0.0(transitive)
Updated@jest/types@^29.0.0-alpha.0
Updatedjest-mock@^29.0.0-alpha.0
Updatedjest-util@^29.0.0-alpha.0
Updatedjsdom@^20.0.0