Skip to content

Commit

Permalink
Updated with-jest example to latest versions (#9490)
Browse files Browse the repository at this point in the history
* Updated with-jest example to latest versions

* Fix linting issue

* Updating snapshots

* Rollback snapshots change
  • Loading branch information
aganglada authored and timneutkens committed Nov 23, 2019
1 parent ca730d7 commit 874d3fd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
5 changes: 5 additions & 0 deletions examples/with-jest/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"env": {
"jest": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ exports[`With Snapshot Testing App shows "Hello world!" 1`] = `
Hello World!
</p>
</div>
`
`;
6 changes: 2 additions & 4 deletions examples/with-jest/__tests__/index.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/* eslint-env jest */

import { shallow } from 'enzyme'
import React from 'react'
import { shallow } from 'enzyme'
import renderer from 'react-test-renderer'

import App from '../pages/index.js'
import App from '../pages/index'

describe('With Enzyme', () => {
it('App shows "Hello world!"', () => {
Expand Down
17 changes: 7 additions & 10 deletions examples/with-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@
"name": "with-jest",
"version": "1.0.0",
"dependencies": {
"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0"
"next": "9.1.4",
"react": "16.12.0",
"react-dom": "16.12.0"
},
"devDependencies": {
"@babel/core": "7.3.4",
"babel-jest": "24.1.0",
"enzyme": "3.4.3",
"enzyme-adapter-react-16": "1.2.0",
"jest": "24.1.0",
"react-addons-test-utils": "15.6.2",
"react-test-renderer": "16.4.2"
"enzyme": "3.10.0",
"enzyme-adapter-react-16": "1.15.1",
"jest": "24.9.0",
"react-test-renderer": "16.12.0"
},
"scripts": {
"test": "jest",
Expand Down

0 comments on commit 874d3fd

Please sign in to comment.