rsnext/package.json
Henrik Wenz ef01f13e5d Improve test setup (#5388)
* Update jest

* Let jest start chromedriver

This makes sure chromedriver always ends even if the test was canceled by the user.

* Properly close browser in production-config test

* Properly close browser in production/security test

* Properly close browser in export test

* Properly close browser in app-aspath test

* Remove taskr from project root

This isn’t needed anymore

* Readd taskr to project root (temporary)

* Improve global setup/teardown

* Properly close browser in basic/client-navigation test

Clicking an target=_blank link will open a second browser window. We can only close this by using broser.quit()
2018-10-07 15:04:43 +02:00

71 lines
2 KiB
JSON

{
"name": "nextjs-project",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"lerna": "lerna",
"bootstrap": "lerna bootstrap",
"dev": "lerna run build --stream --parallel",
"testonly": "cross-env NODE_PATH=test/lib jest \\.test.js --config=./test/jest-config.json",
"testall": "npm run testonly -- --coverage --forceExit --runInBand",
"pretest": "npm run lint",
"test": "cross-env npm run testall || npm run testall",
"coveralls": "nyc --instrument=false --source-map=false report --temp-directory=./coverage --reporter=text-lcov | coveralls",
"precommit": "lint-staged",
"lint": "lerna run lint",
"prepublish": "lerna run prepublish"
},
"lint-staged": {
"*.js": "standard",
"bin/*": "standard"
},
"standard": {
"parser": "babel-eslint",
"ignore": [
"**/node_modules/**",
"**/examples/with-ioc/**",
"**/examples/with-kea/**",
"**/examples/with-mobx/**"
]
},
"devDependencies": {
"@babel/plugin-proposal-object-rest-spread": "7.0.0",
"@babel/preset-react": "7.0.0",
"@zeit/next-css": "0.2.1-canary.1",
"@zeit/next-sass": "0.2.1-canary.1",
"@zeit/next-typescript": "1.1.0",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "9.0.0",
"babel-jest": "23.6.0",
"babel-plugin-transform-define": "1.3.0",
"benchmark": "2.1.4",
"cheerio": "0.22.0",
"chromedriver": "2.42.0",
"clone": "2.1.1",
"coveralls": "2.13.1",
"cross-env": "5.2.0",
"express": "4.16.3",
"fkill": "5.1.0",
"flatten": "1.0.2",
"flow-bin": "0.73.0",
"get-port": "3.2.0",
"husky": "0.14.3",
"jest-cli": "23.6.0",
"lerna": "^3.4.0",
"lint-staged": "4.2.3",
"micro": "9.1.0",
"mkdirp": "0.5.1",
"node-fetch": "1.7.3",
"node-notifier": "5.1.2",
"node-sass": "4.9.2",
"nyc": "11.2.1",
"react": "16.4.2",
"react-dom": "16.4.2",
"rimraf": "2.6.2",
"standard": "11.0.1",
"taskr": "1.1.0",
"wd": "1.10.3"
}
}