-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5fb83c
commit 4e58143
Showing
7 changed files
with
584 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
```js | ||
### Login | ||
|
||
This thing displays a login! | ||
|
||
```jsx | ||
<Login /> | ||
``` |
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,7 +1,14 @@ | ||
import React from "react"; | ||
import { render } from "../../test/test-utils"; | ||
import Login from "../Login"; | ||
import markdown from "../Login.md"; | ||
|
||
test("that it renders without issues", () => { | ||
render(<Login />); | ||
}); | ||
|
||
const scope = { MyComponent: Login }; | ||
|
||
describe("My Component", () => { | ||
expect({ markdown, scope }).toMatchVisualSnapshot(); | ||
}); |
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,4 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Login 1`] = `"95b7e9a60f7412c4a3be206900976b7871a1d89e"`; | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,3 +1,19 @@ | ||
require("jest-dom/extend-expect"); | ||
require("babel-polyfill"); | ||
require("react-testing-library/cleanup-after-each"); | ||
const { configure, toMatchVisualSnapshot } = require("sosia"); | ||
const { PuppeteerBrowserTarget } = require("sosia-puppeteer"); | ||
const { MarkdownSource } = require("sosia-markdown"); | ||
|
||
expect.extend({ toMatchVisualSnapshot }); | ||
configure({ | ||
targets: { | ||
"chrome-desktop": new PuppeteerBrowserTarget({ | ||
width: 1024, | ||
height: 768, | ||
}), | ||
}, | ||
sources: { | ||
documentation: new MarkdownSource(), | ||
}, | ||
}); |
Oops, something went wrong.