-
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 0830966
Showing
10 changed files
with
594 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.idea | ||
node_modules | ||
coverage | ||
/lib | ||
/lib | ||
*.cache |
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,3 +1,5 @@ | ||
```js | ||
### Signup | ||
|
||
```jsx | ||
<Signup /> | ||
``` |
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 = { Login }; | ||
|
||
describe("it matches the visual snapshot", () => { | ||
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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
import React from "react"; | ||
import { render } from "../../test/test-utils"; | ||
import Signup from "../Signup"; | ||
import markdown from "../Signup.md"; | ||
|
||
test("that it renders without errors", () => { | ||
render(<Signup />); | ||
}); | ||
|
||
const scope = { Signup }; | ||
|
||
describe("it matches the visual snapshot", () => { | ||
describe("it matches the visual snapshot", () => { | ||
expect({ markdown, scope }).toMatchVisualSnapshot(); | ||
}); | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.