AnimateCSS integration in tests suite (#3206)

Hi,

Just because, i never try to code a test
I purpose to supervise this work

After, perhaps it is not necessary to integrate it in develop branch. 
It's up to you to decide
This commit is contained in:
Bugsounet - Cédric
2023-09-25 22:27:52 +02:00
committed by GitHub
parent 95ec3096e0
commit ad665a7a33
6 changed files with 165 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ exports.getDocument = () => {
const url = `http://${config.address || "localhost"}:${config.port || "8080"}`;
jsdom.JSDOM.fromURL(url, { resources: "usable", runScripts: "dangerously" }).then((dom) => {
dom.window.name = "jsdom";
global.window = dom.window;
dom.window.fetch = fetch;
dom.window.onload = () => {
global.document = dom.window.document;