mirror of https://github.com/webpack/webpack.git
chore: fix node patch env
This commit is contained in:
parent
43097bcb4e
commit
ad8fa4d64e
|
@ -1,5 +1,8 @@
|
|||
// eslint-disable-next-line node/no-extraneous-require
|
||||
const NodeEnvironment = require("jest-environment-node").TestEnvironment;
|
||||
const NodeEnvironment =
|
||||
// For jest@29
|
||||
require("jest-environment-node").TestEnvironment ||
|
||||
// For jest@27
|
||||
require("jest-environment-node");
|
||||
|
||||
class CustomEnvironment extends NodeEnvironment {
|
||||
constructor(config, context) {
|
||||
|
|
Loading…
Reference in New Issue