Ocelot-Social/package.json
Robert Schäfer 6f487e2687 Fix non-deterministic erros in testing
Without the `--runInBand` flag, jest will create a worker pool of child
processes and run the tests withing. No surprise, why the tests were
running completely non-deterministically! If we clear the database in
the middle of the tests we will end up with no records, or if we run the
factories in several tests we end up with many duplicate records.

FYI: @mattwr18 @appinteractive @tansaku @Kachulio1
2019-01-14 23:22:12 +01:00

92 lines
3.0 KiB
JSON

{
"name": "human-connection-backend",
"version": "0.0.1",
"description": "GraphQL Backend for Human Connection",
"main": "src/index.js",
"config": {
"no_auth": "cross-env GRAPHQL_URI=http://localhost:4001 GRAPHQL_PORT=4001 PERMISSIONS=disabled"
},
"scripts": {
"build": "babel src/ -d dist/ --copy-files",
"start": "node dist/",
"dev": "nodemon --exec babel-node src/index.js",
"dev:debug": "nodemon --exec babel-node --inspect=0.0.0.0:9229 src/index.js",
"lint": "eslint src --config .eslintrc.js",
"test": "nyc --reporter=text-lcov yarn run test:jest",
"test:jest": "$npm_package_config_no_auth run-p --race start test:cmd:jest",
"test:cmd:jest": "jest --forceExit --detectOpenHandles --runInBand",
"test:coverage": "nyc report --reporter=text-lcov > coverage.lcov",
"db:script:seed": "wait-on tcp:4001 && babel-node src/seed/seed-db.js",
"db:script:reset": "wait-on tcp:4001 && babel-node src/seed/reset-db.js",
"db:seed": "$npm_package_config_no_auth run-p --race dev db:script:seed",
"db:reset": "$npm_package_config_no_auth run-p --race dev db:script:reset"
},
"author": "Human Connection gGmbH",
"license": "MIT",
"jest": {
"verbose": true,
"testMatch": [
"**/src/**/?(*.)+(spec|test).js?(x)"
],
"globalSetup": "<rootDir>/src/jest/globalSetup",
"globalTeardown": "<rootDir>/src/jest/globalTeardown"
},
"dependencies": {
"apollo-cache-inmemory": "~1.3.12",
"apollo-client": "~2.4.8",
"apollo-link-http": "~1.5.9",
"apollo-server": "~2.3.1",
"bcryptjs": "~2.4.3",
"cheerio": "~1.0.0-rc.2",
"cross-env": "~5.2.0",
"date-fns": "^2.0.0-alpha.26",
"dotenv": "~6.2.0",
"faker": "~4.1.0",
"graphql": "~0.13.0",
"graphql-custom-directives": "~0.2.14",
"graphql-iso-date": "~3.6.1",
"graphql-middleware": "~1.7.8",
"graphql-shield": "~4.1.2",
"graphql-tag": "~2.10.0",
"graphql-yoga": "~1.16.7",
"jsonwebtoken": "~8.4.0",
"linkifyjs": "~2.1.7",
"lodash": "~4.17.11",
"ms": "~2.1.1",
"neo4j-driver": "~1.7.2",
"neo4j-graphql-js": "~2.2.0",
"node-fetch": "~2.3.0",
"npm-run-all": "~4.1.5",
"passport": "~0.4.0",
"passport-jwt": "~4.0.0",
"sanitize-html": "~1.20.0",
"slug": "~0.9.3",
"trunc-html": "~1.1.2",
"wait-on": "~3.2.0"
},
"devDependencies": {
"@babel/cli": "~7.2.3",
"@babel/core": "^7.2.2",
"@babel/node": "~7.2.2",
"@babel/preset-env": "~7.2.3",
"@babel/register": "~7.0.0",
"apollo-server-testing": "~2.2.6",
"babel-core": "^7.0.0-0",
"babel-eslint": "~10.0.1",
"babel-jest": "^23.6.0",
"chai": "~4.2.0",
"eslint": "~5.11.1",
"eslint-config-standard": "~12.0.0",
"eslint-plugin-import": "~2.14.0",
"eslint-plugin-jest": "^22.1.3",
"eslint-plugin-node": "~8.0.0",
"eslint-plugin-promise": "~4.0.1",
"eslint-plugin-standard": "~4.0.0",
"graphql-request": "^1.8.2",
"jest": "^23.6.0",
"nodemon": "~1.18.9",
"nyc": "^13.1.0",
"supertest": "^3.3.0"
}
}