Socket
Socket
Sign inDemoInstall

jest-environment-jsdom

Package Overview
Dependencies
Maintainers
6
Versions
274
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-environment-jsdom - npm Package Compare versions

Comparing version 28.1.3 to 29.0.0-alpha.0

5

build/index.d.ts

@@ -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;

6

build/index.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc