Skip to content

Commit

Permalink
add jest-styled-components
Browse files Browse the repository at this point in the history
  • Loading branch information
MicheleBertoli committed Jul 15, 2017
1 parent 3e83718 commit 5c9c803
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 452 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"jest-styled-components": "^4.0.0",
"react": "^15.6.0",
"react-dom": "^15.6.0",
"react-test-renderer": "^15.5.4",
Expand All @@ -25,7 +26,7 @@
"babel-preset-flow": "^6.23.0",
"babel-preset-latest": "6.22.0",
"babel-preset-react": "6.23.0",
"jest": "^16.0.1",
"jest": "^20.0.4",
"react-scripts": "1.0.7"
},
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import ReactDOM from 'react-dom';
import App from './App';
import Foo from './components';
import renderer from 'react-test-renderer';
import 'jest-styled-components';

it('renders without crashing', () => {
const comp = renderer.create(<Foo>Hello</Foo>);
Expand Down
11 changes: 9 additions & 2 deletions src/__snapshots__/App.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
exports[`test renders without crashing 1`] = `
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`renders without crashing 1`] = `
.c0 {
color: blue;
}
<div
className="sc-bdVaJa fmDBXD">
className="c0"
>
Hello
</div>
`;
Loading

0 comments on commit 5c9c803

Please sign in to comment.