OpenC3/cosmos

View on GitHub
openc3/templates/tool_svelte/src/App.test.js

Summary

Maintainability
A
0 mins
Test Coverage
import App from "./App.svelte";
import { render } from "@testing-library/svelte";

it("renders the App component", async () => {
  const name = "testName";
  const { getByText } = render(App, { name });

  expect(getByText(`${name} is mounted!`)).toBeInTheDocument();
});