diff --git a/Testing.MD b/Testing.MD new file mode 100644 index 0000000..47d6a32 --- /dev/null +++ b/Testing.MD @@ -0,0 +1,15 @@ +# Testing + +## TDD - Test Driven Development + +## Types of Test + +- Smoke Tests + - Does it exist +- Unit Tests + - Testing each item in isolation +- Snapshot Tests + - Freeze it / i like it today +- Visual / UI Snapshot + - Percy.IO + - etc diff --git a/__tests__/__snapshots__/header.test.tsx.snap b/__tests__/__snapshots__/header.test.tsx.snap new file mode 100644 index 0000000..aa9a595 --- /dev/null +++ b/__tests__/__snapshots__/header.test.tsx.snap @@ -0,0 +1,14 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Header Looks Great 1`] = ` + + + +`; diff --git a/__tests__/footer.test.tsx b/__tests__/footer.test.tsx new file mode 100644 index 0000000..172ab2a --- /dev/null +++ b/__tests__/footer.test.tsx @@ -0,0 +1,11 @@ +import { render } from "@testing-library/react"; +import Footer from "../src/components/Footer"; + +describe("Footer", () => { + it("Has correct year", () => { + // const MockFooter = () => ; + const {getByText} = render(