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

@@ -4,6 +4,6 @@
@import "../../../assets/scss/mixins";
.copyright {
color: color.adjust($color-gray, 18%);
color: color.adjust($color-gray, $whiteness: 18%);
font-size: $typographic-small-font-size;
}

View File

@@ -2,10 +2,11 @@ import React from "react";
import renderer from "react-test-renderer";
import { Copyright } from "@/components/Sidebar/Copyright";
import * as mocks from "@/mocks";
describe("Copyright", () => {
it("renders correctly", () => {
const props = { copyright: "copyright" };
const props = { copyright: mocks.siteMetadata.site.siteMetadata.copyright };
const tree = renderer.create(<Copyright {...props} />).toJSON();
expect(tree).toMatchSnapshot();
});

View File

@@ -1,6 +1,6 @@
import React from "react";
import styles from "./Copyright.module.scss";
import * as styles from "./Copyright.module.scss";
type Props = {
copyright: string;

View File

@@ -1,9 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Copyright renders correctly 1`] = `
<div
className="copyright"
>
copyright
<div>
All rights reserved.
</div>
`;