test(just-test-in-node): fix npm script

Before the script exited with error thrown. Enzyme was updated
to v3.11.0 and custom adapter for react@17 is used.

Refs #7341
This commit is contained in:
Vladimir Gorej
2021-06-10 14:46:11 +02:00
parent edc41b9036
commit b504579d26
2 changed files with 35652 additions and 1272 deletions

36919
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,11 @@
const { JSDOM } = require("jsdom")
const Enzyme = require("enzyme")
const Adapter = require("@wojtekmaj/enzyme-adapter-react-17")
const win = require("../../src/core/window")
Enzyme.configure({ adapter: new Adapter() })
const jsdom = new JSDOM("<!doctype html><html><body></body></html>")
const { window } = jsdom