UNPKG

414 BTypeScriptView Raw
1import React from "react";
2
3import { app } from "@/test/elements";
4import { renderApp } from "@/test/renderApp";
5
6import { CssModules } from "./CssModules";
7
8const today = new Date(2021, 10, 25);
9
10beforeAll(() => jest.setSystemTime(today));
11afterAll(() => jest.useRealTimers());
12
13beforeEach(() => {
14 renderApp(<CssModules />);
15});
16
17test("should match the snapshot", () => {
18 expect(app()).toMatchSnapshot();
19});