refactor(starter): upgrade and move to typescript

This commit is contained in:
Alexander Shelepenok
2022-04-16 14:25:55 +00:00
parent 67ebabbaac
commit 50a99f57f7
156 changed files with 5350 additions and 7173 deletions

View File

@@ -17,11 +17,8 @@ describe("Sidebar", () => {
mockedUseStaticQuery.mockReturnValue(mocks.siteMetadata);
});
const props = {
isIndex: true,
};
it("renders correctly", () => {
const props = { isIndex: true };
const tree = renderer.create(<Sidebar {...props} />).toJSON();
expect(tree).toMatchSnapshot();
});