Skip to content

Commit

Permalink
fix react test
Browse files Browse the repository at this point in the history
  • Loading branch information
MokujinMap committed May 30, 2024
1 parent e6a590f commit 5d4bff3
Show file tree
Hide file tree
Showing 7 changed files with 2,844 additions and 1,384 deletions.
6 changes: 3 additions & 3 deletions jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import got from 'got';
import vm from 'vm';
import {JSDOM} from 'jsdom';
import fetch from 'cross-fetch';
import * as path from "path";
import * as path from 'path';

Object.assign(process.env, require('dotenv').config());

Expand Down Expand Up @@ -99,7 +99,7 @@ module.exports = async function () {
performance,
URL,
URLSearchParams,

queueMicrotask: (cb: Function) => cb(),
requestAnimationFrame: (cb: Function) => cb(),
fetch: (url: string, query: object) =>
fetch(url, {
Expand Down Expand Up @@ -172,4 +172,4 @@ function domToJson(e: Node | ChildNode | null): TreeNode {
}

return result;
};
}

0 comments on commit 5d4bff3

Please sign in to comment.