mirror of
				https://github.com/mastermindzh/rickvanlieshout.com
				synced 2025-10-31 08:40:27 +01:00 
			
		
		
		
	refactor(starter): upgrade and move to typescript
This commit is contained in:
		| @@ -1,15 +1,16 @@ | ||||
| import React from "react"; | ||||
| import renderer from "react-test-renderer"; | ||||
|  | ||||
| import Page from "./Page"; | ||||
| import { Page } from "@/components/Page"; | ||||
| import * as mocks from "@/mocks"; | ||||
|  | ||||
| describe("Page", () => { | ||||
|   const props = { | ||||
|     children: "test", | ||||
|     title: "test", | ||||
|   }; | ||||
|  | ||||
|   it("renders correctly", () => { | ||||
|     const props = { | ||||
|       children: mocks.markdownRemark.html, | ||||
|       title: mocks.markdownRemark.frontmatter.title, | ||||
|     }; | ||||
|  | ||||
|     const tree = renderer | ||||
|       .create(<Page {...props}>{props.children}</Page>) | ||||
|       .toJSON(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user