jest setup, cypress type conflict fix

This commit is contained in:
ericv105
2023-01-06 01:07:27 -05:00
parent 9ce4348263
commit bf2a5e4a46
9 changed files with 10751 additions and 2 deletions
@@ -0,0 +1,13 @@
import React from "react";
import { Container } from "../../src/components/Container";
describe("<Container />", () => {
it("renders", () => {
// see: https://on.cypress.io/mounting-react
const className = "my-class";
const text = "test_container";
cy.mount(<Container className={className}>{text}</Container>);
cy.get(`div.${className}`).should("have.class", className).should("be.visible").should("contain", text);
});
});