(components) add react repo

This repo only contains a Button which is here only for demonstration purpose.
Its purpose is to contain all the future react-based components of the
design system.
This commit is contained in:
Nathan Vasse
2022-12-01 12:05:08 +01:00
committed by NathanVss
parent 32a48e9e46
commit 75f2617726
13 changed files with 183 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import { describe, expect, it } from "vitest";
import { render, screen } from "@testing-library/react";
import React from "react";
import { Button } from "./index";
describe("<Button/>", () => {
it("renders", () => {
render(<Button />);
const button = screen.getByRole("button", { name: "<Button/>" });
expect(button.classList.contains("c__button")).toBe(true);
});
});