We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb4ecdf commit 2bbc8e0Copy full SHA for 2bbc8e0
chartlets.js/packages/lib/src/plugins/vega/VegaChart.test.tsx
@@ -1,10 +1,16 @@
1
-import { describe, it, expect } from "vitest";
+import { describe, expect, it } from "vitest";
2
import { render } from "@testing-library/react";
3
// import { render, screen, fireEvent } from "@testing-library/react";
4
import type { TopLevelSpec } from "vega-lite";
5
import { createChangeHandler } from "@/plugins/mui/common.test";
6
import { VegaChart } from "./VegaChart";
7
8
+global.ResizeObserver = class {
9
+ observe() {}
10
+ unobserve() {}
11
+ disconnect() {}
12
+};
13
+
14
describe("VegaChart", () => {
15
it("should render if chart is not given", () => {
16
render(
0 commit comments