-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/yak-cross-file
- Loading branch information
Showing
27 changed files
with
836 additions
and
636 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/// <reference types="jest" /> | ||
import React from "react"; | ||
import { render } from "@testing-library/react"; | ||
import { Clock } from "../Clock"; | ||
|
||
test("renders Clock component", () => { | ||
const { asFragment } = render(<Clock />); | ||
expect(asFragment()).toMatchSnapshot(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/// <reference types="jest" /> | ||
import React from "react"; | ||
import { render } from "@testing-library/react"; | ||
import { ClockHands } from "../ClockHands"; | ||
|
||
test("renders ClockHands component", () => { | ||
const { asFragment } = render(<ClockHands />); | ||
expect(asFragment()).toMatchSnapshot(); | ||
}); |
74 changes: 74 additions & 0 deletions
74
packages/example/app/__tests__/__snapshots__/Clock.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`renders Clock component 1`] = ` | ||
<DocumentFragment> | ||
<div> | ||
<div> | ||
<div /> | ||
<div | ||
index="0" | ||
> | ||
12 | ||
</div> | ||
<div | ||
index="1" | ||
> | ||
1 | ||
</div> | ||
<div | ||
index="2" | ||
> | ||
2 | ||
</div> | ||
<div | ||
index="3" | ||
> | ||
3 | ||
</div> | ||
<div | ||
index="4" | ||
> | ||
4 | ||
</div> | ||
<div | ||
index="5" | ||
> | ||
5 | ||
</div> | ||
<div | ||
index="6" | ||
> | ||
6 | ||
</div> | ||
<div | ||
index="7" | ||
> | ||
7 | ||
</div> | ||
<div | ||
index="8" | ||
> | ||
8 | ||
</div> | ||
<div | ||
index="9" | ||
> | ||
9 | ||
</div> | ||
<div | ||
index="10" | ||
> | ||
10 | ||
</div> | ||
<div | ||
index="11" | ||
> | ||
11 | ||
</div> | ||
<div /> | ||
<div /> | ||
<div /> | ||
</div> | ||
</div> | ||
</DocumentFragment> | ||
`; |
9 changes: 9 additions & 0 deletions
9
packages/example/app/__tests__/__snapshots__/ClockHands.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`renders ClockHands component 1`] = ` | ||
<DocumentFragment> | ||
<div /> | ||
<div /> | ||
<div /> | ||
</DocumentFragment> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/example/next.config.js → packages/example/next.config.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
export default { | ||
plugins: { | ||
'postcss-nested':{}, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/// <reference types="vitest" /> | ||
import { defineConfig } from "vite"; | ||
import react from "@vitejs/plugin-react" | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: | ||
[ | ||
react() | ||
], | ||
test: { | ||
globals: true, | ||
environment: "jsdom", | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.