import { defineComponent } from "vue"; import { expect, test } from "vite-plus/test"; import { render } from "@vue-tui/testing"; import { Box, Text } from "@vue-tui/runtime"; test(" inside throws an error", async () => { const App = defineComponent(() => () => ( )); await expect(render(App)).rejects.toThrow("can’t be nested inside "); }); test("fail when text nodes are not within component (mixed)", async () => { const App = defineComponent(() => () => ( Hello World )); await expect(render(App)).rejects.toThrow("must be rendered inside "); }); test("fail when text node is not within component (full)", async () => { const App = defineComponent(() => () => Hello World); await expect(render(App)).rejects.toThrow("must be rendered inside "); });