Commit 8ce757cd authored by Christoph Häfner's avatar Christoph Häfner

Update to next@6

Because of the upgrade to babel7 a lot had to be updated for the jest
setup to work again :/
parent 9481f507
Pipeline #452 passed with stages
in 25 minutes and 51 seconds
{
"env": {
"development": {
"presets": "next/babel"
"presets": [
"next/babel"
]
},
"production": {
"presets": "next/babel"
"presets": [
"next/babel"
]
},
"test": {
"presets": [
[
"env",
"next/babel",
{
"modules": "commonjs"
"preset-env": {
"modules": "commonjs"
}
}
],
"next/babel"
]
]
}
}
......
This diff is collapsed.
......@@ -3,7 +3,8 @@
"version": "1.0.0",
"private": true,
"dependencies": {
"babel-plugin-transform-define": "^1.3.0",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^22.4.3",
"body-parser": "^1.18.2",
"connect-redis": "^3.3.3",
"express": "^4.16.3",
......@@ -13,12 +14,12 @@
"jss": "^9.8.1",
"material-ui": "^1.0.0-beta.45",
"material-ui-icons": "^1.0.0-beta.36",
"next": "^5.1.0",
"next": "^6.0.0",
"next-redux-wrapper": "^1.3.5",
"next-workbox-webpack-plugin": "^1.1.0",
"portier": "^0.3.2",
"react": "^16.3.1",
"react-dom": "^16.3.1",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"react-jss": "^8.4.0",
"react-redux": "^5.0.7",
"redux": "^3.7.2",
......@@ -41,9 +42,9 @@
"localDev": "docker-compose -f docker-compose-local.yml up --build --force-recreate",
"start": "next build && node server.js",
"test": "npm run test:unit && npm run test:build",
"test:unit": "jest --coverage --config ./jest.config.json",
"test:unit": "NODE_ENV=test jest --coverage --config ./jest.config.json",
"test:build": "next build",
"test:unit:watch": "jest --watch --config ./jest.config.json",
"test:unit:watch": "NODE_ENV=test jest --watch --config ./jest.config.json",
"testMoviesApi": "curl -XPOST -H \"Content-Type:application/graphql\" -d 'query { movies { title } }' http://localhost:3000/graphql",
"testMovieCollectionsApi": "curl -XPOST -H \"Content-Type:application/graphql\" -d 'query { movieCollections { name } }' http://localhost:3000/graphql"
}
......
......@@ -4,7 +4,7 @@ import { shallow } from 'enzyme'
import FindSeenMovieForm from '../../../../src/rate/unseenMovieList/components/FindSeenMovieForm.js'
describe('FindSeenMovieForm', () => {
const subComponent = "< />"
const subComponent = "<_default />"
it('should render a sub-component and two buttons', () => {
const wrapper = shallow(<FindSeenMovieForm />);
expect(wrapper.text()).toContain(subComponent);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment