From 75af3e95fc2fd963154a0767e1306ca39f9fbded Mon Sep 17 00:00:00 2001 From: Mahdi Hosseinzadeh Date: Wed, 22 Nov 2023 19:39:12 +0330 Subject: [PATCH] Update --- package.json | 1 + test/main.test.js | 10 ---------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/package.json b/package.json index a8a2301..0fc903a 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ ] ], "preset": "jest-puppeteer", + "testEnvironment": "jsdom", "testEnvironmentOptions": { "url": "http://localhost/" } diff --git a/test/main.test.js b/test/main.test.js index f82e525..9bc5729 100644 --- a/test/main.test.js +++ b/test/main.test.js @@ -1,13 +1,3 @@ -/** - * This docblock is required to configure jest environment to jsdom. - * See https://jestjs.io/docs/configuration#testenvironment-string - * - * Another way would be to manually setting up jsdom. - * See testing-with-jsdom git branch that does it that way. - * - * @jest-environment jsdom - */ - const puppeteer = require("puppeteer-core"); const fileSystem = require("fs"); // See https://stackoverflow.com/a/48952855/8583692