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