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 0fcfc4f commit 372e489Copy full SHA for 372e489
chartlets.js/packages/lib/src/component/Component.test.tsx
@@ -0,0 +1,18 @@
1
+import { describe, it, expect } from "vitest";
2
+import { render, screen } from "@testing-library/react";
3
+import { Component } from "./Component";
4
+
5
+describe("Component", () => {
6
+ it("should render the Component component", () => {
7
+ const boxProps = {
8
+ type: "Box",
9
+ id: "bx",
10
+ children: ["Hello!", "World!"],
11
+ onChange: () => {},
12
+ };
13
+ render(<Component {...boxProps} />);
14
+ // to inspect rendered component, do:
15
+ // expect(document.body).toEqual({});
16
+ expect(screen.getByText("World!")).toBeUndefined();
17
+ });
18
+});
0 commit comments