Skip to content

Commit efc96ce

Browse files
fixed lowcoder-comps tests
1 parent d8ade21 commit efc96ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

client/config/test/jest.setup-after-env.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// expect(element).toHaveTextContent(/react/i)
44
// learn more: https://github.com/testing-library/jest-dom
55
import "@testing-library/jest-dom";
6+
import { URL } from 'url';
67

78
// implementation of window.resizeTo for dispatching event
89
window.resizeTo = function resizeTo(width, height) {
@@ -53,4 +54,6 @@ class Worker {
5354
}
5455
}
5556

56-
window.Worker = Worker;
57+
window.Worker = Worker;
58+
59+
global.URL = URL;

0 commit comments

Comments
 (0)