mirror of
https://github.com/diodeinc/pcb.git
synced 2026-09-14 20:17:19 +08:00
0dbe20af0c
* Initial VSCode release * Add CI * add deps * fix eslint * refactor workflows
19 lines
601 B
TypeScript
19 lines
601 B
TypeScript
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
|
// allows you to do things like:
|
|
// expect(element).toHaveTextContent(/react/i)
|
|
// learn more: https://github.com/testing-library/jest-dom
|
|
import "@testing-library/jest-dom";
|
|
|
|
// Mock VSCode web components bundle (ESM syntax causes Jest parse errors)
|
|
jest.mock("@vscode-elements/elements/dist/bundled.js", () => ({}));
|
|
|
|
// Polyfill ResizeObserver used by @xyflow/react inside jsdom test environment
|
|
// @ts-ignore
|
|
global.ResizeObserver =
|
|
global.ResizeObserver ||
|
|
class {
|
|
observe() {}
|
|
unobserve() {}
|
|
disconnect() {}
|
|
};
|