diff --git a/src/components/containers/core/Section/Content.jsx b/src/components/containers/core/Section/Content.jsx new file mode 100644 index 00000000..3e7bb80f --- /dev/null +++ b/src/components/containers/core/Section/Content.jsx @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +import styled from "styled-components"; + +import CoreContent from "containers/core/Content"; + +/** + * A container for content of the `Section` component. + * + * @author Arctic Ice Studio + * @author Sven Greb + * @since 0.3.0 + */ +const Content = styled(CoreContent)` + margin-top: ${({ compact }) => !compact && "5em"}; + margin-bottom: ${({ compact }) => !compact && "5em"}; +`; + +export default Content; diff --git a/src/components/containers/core/Section/index.js b/src/components/containers/core/Section/index.js index 8319e216..dcdc1146 100644 --- a/src/components/containers/core/Section/index.js +++ b/src/components/containers/core/Section/index.js @@ -7,4 +7,8 @@ * License: MIT */ -export { default } from "./Section"; +import Section from "./Section"; +import Content from "./Content"; + +export { Content }; +export default Section; diff --git a/src/components/organisms/page/blog/SectionBlogPosts/SectionBlogPosts.jsx b/src/components/organisms/page/blog/SectionBlogPosts/SectionBlogPosts.jsx new file mode 100644 index 00000000..3f6f9ad6 --- /dev/null +++ b/src/components/organisms/page/blog/SectionBlogPosts/SectionBlogPosts.jsx @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +import React from "react"; + +import Section, { Content } from "containers/core/Section"; +import EmptyState from "molecules/core/EmptyState"; + +import { emptyStateIllustrationStyles } from "../../shared/styles"; + +/** + * The component that represents the landing section of the blog posts page. + * + * @author Arctic Ice Studio + * @author Sven Greb + * @since 0.3.0 + */ +const SectionBlogPosts = () => ( +
+ + + +
+); + +export default SectionBlogPosts; diff --git a/src/components/organisms/page/blog/SectionBlogPosts/index.js b/src/components/organisms/page/blog/SectionBlogPosts/index.js new file mode 100644 index 00000000..e9ca86c1 --- /dev/null +++ b/src/components/organisms/page/blog/SectionBlogPosts/index.js @@ -0,0 +1,10 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +export { default } from "./SectionBlogPosts"; diff --git a/src/components/organisms/page/blog/index.js b/src/components/organisms/page/blog/index.js new file mode 100644 index 00000000..64aa75e5 --- /dev/null +++ b/src/components/organisms/page/blog/index.js @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +/** + * @file Provides the components for the blog page. + * @author Arctic Ice Studio + * @author Sven Greb + * @since 0.3.0 + */ + +import SectionBlogPosts from "./SectionBlogPosts"; + +/* eslint-disable-next-line import/prefer-default-export */ +export { SectionBlogPosts }; diff --git a/src/components/organisms/page/community/SectionLanding/SectionLanding.jsx b/src/components/organisms/page/community/SectionLanding/SectionLanding.jsx new file mode 100644 index 00000000..10e2fb55 --- /dev/null +++ b/src/components/organisms/page/community/SectionLanding/SectionLanding.jsx @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +import React from "react"; + +import Section, { Content } from "containers/core/Section"; +import EmptyState from "molecules/core/EmptyState"; + +import { emptyStateIllustrationStyles } from "../../shared/styles"; + +/** + * The component that represents the landing section of the community page. + * + * @author Arctic Ice Studio + * @author Sven Greb + * @since 0.3.0 + */ +const SectionLanding = () => ( +
+ + + +
+); + +export default SectionLanding; diff --git a/src/components/organisms/page/community/SectionLanding/index.js b/src/components/organisms/page/community/SectionLanding/index.js new file mode 100644 index 00000000..7b475b16 --- /dev/null +++ b/src/components/organisms/page/community/SectionLanding/index.js @@ -0,0 +1,10 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +export { default } from "./SectionLanding"; diff --git a/src/components/organisms/page/community/index.js b/src/components/organisms/page/community/index.js new file mode 100644 index 00000000..7972958c --- /dev/null +++ b/src/components/organisms/page/community/index.js @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +/** + * @file Provides the components for the community page. + * @author Arctic Ice Studio + * @author Sven Greb + * @since 0.3.0 + */ + +import SectionLanding from "./SectionLanding"; + +/* eslint-disable-next-line import/prefer-default-export */ +export { SectionLanding }; diff --git a/src/components/organisms/page/docs/SectionLanding/SectionLanding.jsx b/src/components/organisms/page/docs/SectionLanding/SectionLanding.jsx new file mode 100644 index 00000000..d009f38f --- /dev/null +++ b/src/components/organisms/page/docs/SectionLanding/SectionLanding.jsx @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +import React from "react"; + +import Section, { Content } from "containers/core/Section"; +import EmptyState from "molecules/core/EmptyState"; + +import { emptyStateIllustrationStyles } from "../../shared/styles"; + +/** + * The component that represents the landing section of the docs page. + * + * @author Arctic Ice Studio + * @author Sven Greb + * @since 0.3.0 + */ +const SectionLanding = () => ( +
+ + + +
+); + +export default SectionLanding; diff --git a/src/components/organisms/page/docs/SectionLanding/index.js b/src/components/organisms/page/docs/SectionLanding/index.js new file mode 100644 index 00000000..7b475b16 --- /dev/null +++ b/src/components/organisms/page/docs/SectionLanding/index.js @@ -0,0 +1,10 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +export { default } from "./SectionLanding"; diff --git a/src/components/organisms/page/docs/index.js b/src/components/organisms/page/docs/index.js new file mode 100644 index 00000000..78ecc947 --- /dev/null +++ b/src/components/organisms/page/docs/index.js @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +/** + * @file Provides the components for the docs page. + * @author Arctic Ice Studio + * @author Sven Greb + * @since 0.3.0 + */ + +import SectionLanding from "./SectionLanding"; + +/* eslint-disable-next-line import/prefer-default-export */ +export { SectionLanding }; diff --git a/src/components/organisms/page/landing/SectionHero/SectionHero.jsx b/src/components/organisms/page/landing/SectionHero/SectionHero.jsx new file mode 100644 index 00000000..de645530 --- /dev/null +++ b/src/components/organisms/page/landing/SectionHero/SectionHero.jsx @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +import React from "react"; + +import Section, { Content } from "containers/core/Section"; +import EmptyState from "molecules/core/EmptyState"; + +import { emptyStateIllustrationStyles } from "../../shared/styles"; + +/** + * The component that represents the hero section of the landing page. + * + * @author Arctic Ice Studio + * @author Sven Greb + * @since 0.3.0 + */ +const SectionHero = () => ( +
+ + + +
+); + +export default SectionHero; diff --git a/src/components/organisms/page/landing/SectionHero/index.js b/src/components/organisms/page/landing/SectionHero/index.js new file mode 100644 index 00000000..f15e7dce --- /dev/null +++ b/src/components/organisms/page/landing/SectionHero/index.js @@ -0,0 +1,10 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +export { default } from "./SectionHero"; diff --git a/src/components/organisms/page/landing/index.js b/src/components/organisms/page/landing/index.js new file mode 100644 index 00000000..f980d4c5 --- /dev/null +++ b/src/components/organisms/page/landing/index.js @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +/** + * @file Provides the organism components for the landing page. + * @author Arctic Ice Studio + * @author Sven Greb + * @see https://en.wikipedia.org/wiki/Landing_page + * @since 0.3.0 + */ + +import SectionHero from "./SectionHero"; + +/* eslint-disable-next-line import/prefer-default-export */ +export { SectionHero }; diff --git a/src/components/organisms/page/ports/SectionLanding/SectionLanding.jsx b/src/components/organisms/page/ports/SectionLanding/SectionLanding.jsx new file mode 100644 index 00000000..e0227239 --- /dev/null +++ b/src/components/organisms/page/ports/SectionLanding/SectionLanding.jsx @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +import React from "react"; + +import Section, { Content } from "containers/core/Section"; +import EmptyState from "molecules/core/EmptyState"; + +import { emptyStateIllustrationStyles } from "../../shared/styles"; + +/** + * The component that represents the landing section of the ports page. + * + * @author Arctic Ice Studio + * @author Sven Greb + * @since 0.3.0 + */ +const SectionLanding = () => ( +
+ + + +
+); + +export default SectionLanding; diff --git a/src/components/organisms/page/ports/SectionLanding/index.js b/src/components/organisms/page/ports/SectionLanding/index.js new file mode 100644 index 00000000..7b475b16 --- /dev/null +++ b/src/components/organisms/page/ports/SectionLanding/index.js @@ -0,0 +1,10 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +export { default } from "./SectionLanding"; diff --git a/src/components/organisms/page/ports/index.js b/src/components/organisms/page/ports/index.js new file mode 100644 index 00000000..62290c4b --- /dev/null +++ b/src/components/organisms/page/ports/index.js @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +/** + * @file Provides the components for the ports page. + * @author Arctic Ice Studio + * @author Sven Greb + * @since 0.3.0 + */ + +import SectionLanding from "./SectionLanding"; + +/* eslint-disable-next-line import/prefer-default-export */ +export { SectionLanding }; diff --git a/src/components/organisms/page/shared/styles.js b/src/components/organisms/page/shared/styles.js new file mode 100644 index 00000000..835d484b --- /dev/null +++ b/src/components/organisms/page/shared/styles.js @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +import { css } from "styled-components"; + +import { media } from "styles/theme"; + +const emptyStateIllustrationStyles = css` + width: 8em; + + ${media.phonePortrait` + width: 7em; + `} +`; + +/* eslint-disable-next-line import/prefer-default-export */ +export { emptyStateIllustrationStyles }; diff --git a/src/pages/blog.jsx b/src/pages/blog.jsx new file mode 100644 index 00000000..6ca16369 --- /dev/null +++ b/src/pages/blog.jsx @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +import React from "react"; + +import BaseLayout from "layouts/core/BaseLayout"; +import { SectionBlogPosts } from "organisms/page/blog"; + +/** + * The component that represents the blog page. + * + * @author Arctic Ice Studio + * @author Sven Greb + * @since 0.3.0 + */ +const Blog = props => ( + + + +); + +export default Blog; diff --git a/src/pages/community.jsx b/src/pages/community.jsx new file mode 100644 index 00000000..2c8c479e --- /dev/null +++ b/src/pages/community.jsx @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +import React from "react"; + +import BaseLayout from "layouts/core/BaseLayout"; +import { SectionLanding } from "organisms/page/community"; + +/** + * The component that represents the community page. + * + * @author Arctic Ice Studio + * @author Sven Greb + * @since 0.3.0 + */ +const Community = props => ( + + + +); + +export default Community; diff --git a/src/pages/docs.jsx b/src/pages/docs.jsx new file mode 100644 index 00000000..0728bff3 --- /dev/null +++ b/src/pages/docs.jsx @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +import React from "react"; + +import BaseLayout from "layouts/core/BaseLayout"; +import { SectionLanding } from "organisms/page/docs"; + +/** + * The component that represents the docs page. + * + * @author Arctic Ice Studio + * @author Sven Greb + * @since 0.3.0 + */ +const Docs = props => ( + + + +); + +export default Docs; diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 116ada29..5b05fdfb 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -6,9 +6,11 @@ * Repository: https://github.com/arcticicestudio/nord-docs * License: MIT */ -import React, { Fragment } from "react"; + +import React from "react"; import BaseLayout from "layouts/core/BaseLayout"; +import { SectionHero } from "organisms/page/landing"; /** * The landing page component representing the root/index of the site. @@ -19,7 +21,7 @@ import BaseLayout from "layouts/core/BaseLayout"; */ const Landing = () => ( - + ); diff --git a/src/pages/ports.jsx b/src/pages/ports.jsx new file mode 100644 index 00000000..5e999dc1 --- /dev/null +++ b/src/pages/ports.jsx @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +import React from "react"; + +import BaseLayout from "layouts/core/BaseLayout"; +import { SectionLanding } from "organisms/page/ports"; + +/** + * The component that represents the ports page. + * + * @author Arctic Ice Studio + * @author Sven Greb + * @since 0.3.0 + */ +const Ports = props => ( + + + +); + +export default Ports; diff --git a/test/components/containers/core/Section/Content.test.jsx b/test/components/containers/core/Section/Content.test.jsx new file mode 100644 index 00000000..7a0f968c --- /dev/null +++ b/test/components/containers/core/Section/Content.test.jsx @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +import React from "react"; +import { stripUnit } from "polished"; + +import { Content } from "containers/core/Section"; +import { renderWithTheme } from "nord-docs-test-utils"; + +describe("theme styles", () => { + test("has top and bottom margin", () => { + const { container } = renderWithTheme(Nord); + const marginTop = stripUnit(getComputedStyle(container.firstChild).marginTop); + const marginBottom = stripUnit(getComputedStyle(container.firstChild).marginBottom); + + expect(marginTop).toBeGreaterThan(0); + expect(marginBottom).toBeGreaterThan(0); + expect(container.firstChild).toMatchSnapshot(); + }); + + test("adjusts top and bottom margin to passed props", () => { + const { container } = renderWithTheme(Nord); + const marginTop = stripUnit(getComputedStyle(container.firstChild).marginTop); + const marginBottom = stripUnit(getComputedStyle(container.firstChild).marginBottom); + + expect(marginTop).toBeFalsy(); + expect(marginBottom).toBeFalsy(); + expect(container.firstChild).toMatchSnapshot(); + }); +}); diff --git a/test/components/containers/core/Section/__snapshots__/Content.test.jsx.snap b/test/components/containers/core/Section/__snapshots__/Content.test.jsx.snap new file mode 100644 index 00000000..644adda2 --- /dev/null +++ b/test/components/containers/core/Section/__snapshots__/Content.test.jsx.snap @@ -0,0 +1,39 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`theme styles adjusts top and bottom margin to passed props 1`] = ` +.c0 { + width: 100%; +} + +@media (min-width:75em) { + .c0 { + max-width: 75em; + } +} + +
+ Nord +
+`; + +exports[`theme styles has top and bottom margin 1`] = ` +.c0 { + width: 100%; + margin-top: 5em; + margin-bottom: 5em; +} + +@media (min-width:75em) { + .c0 { + max-width: 75em; + } +} + +
+ Nord +
+`; diff --git a/test/components/layouts/core/BaseLayout/BaseLayout.test.jsx b/test/components/layouts/core/BaseLayout/BaseLayout.test.jsx index 795f027e..7d06d90e 100644 --- a/test/components/layouts/core/BaseLayout/BaseLayout.test.jsx +++ b/test/components/layouts/core/BaseLayout/BaseLayout.test.jsx @@ -14,7 +14,7 @@ import BaseLayout from "layouts/core/BaseLayout"; /* * This test is disabled because it will be covered by E2E tests with Cypress later on. - * It is also skipped until due to problems with mocking transitive modules and components. + * It is also skipped due to problems with mocking transitive modules and components. */ test.skip("snapshot", () => { const { container } = render( diff --git a/test/components/organisms/page/blog/SectionBlogPosts/SectionBlogPosts.test.jsx b/test/components/organisms/page/blog/SectionBlogPosts/SectionBlogPosts.test.jsx new file mode 100644 index 00000000..0be0c748 --- /dev/null +++ b/test/components/organisms/page/blog/SectionBlogPosts/SectionBlogPosts.test.jsx @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +import React from "react"; + +import { SectionBlogPosts } from "organisms/page/blog"; +import { renderWithTheme } from "nord-docs-test-utils"; + +describe("rendering", () => { + test("renders and is visible", () => { + const { container } = renderWithTheme(); + expect(container.firstChild).toBeVisible(); + }); +}); diff --git a/test/components/organisms/page/community/SectionLanding/SectionLanding.test.jsx b/test/components/organisms/page/community/SectionLanding/SectionLanding.test.jsx new file mode 100644 index 00000000..21303668 --- /dev/null +++ b/test/components/organisms/page/community/SectionLanding/SectionLanding.test.jsx @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +import React from "react"; + +import { SectionLanding } from "organisms/page/docs"; +import { renderWithTheme } from "nord-docs-test-utils"; + +describe("rendering", () => { + test("renders and is visible", () => { + const { container } = renderWithTheme(); + expect(container.firstChild).toBeVisible(); + }); +}); diff --git a/test/components/organisms/page/docs/SectionLanding/SectionLanding.test.jsx b/test/components/organisms/page/docs/SectionLanding/SectionLanding.test.jsx new file mode 100644 index 00000000..099b9d77 --- /dev/null +++ b/test/components/organisms/page/docs/SectionLanding/SectionLanding.test.jsx @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +import React from "react"; + +import { SectionLanding } from "organisms/page/community"; +import { renderWithTheme } from "nord-docs-test-utils"; + +describe("rendering", () => { + test("renders and is visible", () => { + const { container } = renderWithTheme(); + expect(container.firstChild).toBeVisible(); + }); +}); diff --git a/test/components/organisms/page/ports/SectionLanding/SectionLanding.test.jsx b/test/components/organisms/page/ports/SectionLanding/SectionLanding.test.jsx new file mode 100644 index 00000000..a4c8a7ff --- /dev/null +++ b/test/components/organisms/page/ports/SectionLanding/SectionLanding.test.jsx @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +import React from "react"; + +import { SectionLanding } from "organisms/page/ports"; +import { renderWithTheme } from "nord-docs-test-utils"; + +describe("rendering", () => { + test("renders and is visible", () => { + const { container } = renderWithTheme(); + expect(container.firstChild).toBeVisible(); + }); +}); diff --git a/test/pages/index.test.jsx b/test/pages/index.test.jsx index 49f2f17e..4ffc144a 100644 --- a/test/pages/index.test.jsx +++ b/test/pages/index.test.jsx @@ -14,7 +14,7 @@ import Landing from "pages"; /* * This test is disabled because it will be covered by E2E tests with Cypress later on. - * It is also skipped until due to problems with mocking transitive modules and components. + * It is also skipped due to problems with mocking transitive modules and components. */ test.skip("snapshot", () => { const { container } = render();