kentcdodds / testing-workshop

A workshop for learning how to test JavaScript applications
http://git.io/testing-workshop
1.36k stars 710 forks source link

[dev.api] [nodemon] app crashed - waiting for file changes before starting...; Unhandled Rejection (TypeError) #29

Closed szymonhernik closed 7 years ago

szymonhernik commented 7 years ago

Environment info:

Problem description:

I'm on Mac OS Sierra I've tried to run sudo npm run setup --silent and firstly I have "Congrats" but then I have all these errors beginning with the error after the third 'waiting...'. When I go further with the setup instructions and write npm start dev (the same problem when I run sudo npm start dev.api), then my server starts but I got error: [dev.api] [nodemon] app crashed - waiting for file changes before starting... (I pasted the code underneath). When I go to the localhost:8080 I am immediately directed to the http://localhost:8080/#/ where I got an error:

Unhandled Rejection (TypeError): Cannot read property 'data' of [undefined]. (> 34 | action.payload = error.response.data)

The code when I run sudo npm run setup --silent

🎉  Congrats! Your system is setup properly
You should be good to install and run things.
📦  Installing dependencies via yarn --force --ignore-platform --ignore-engines
🔑  starting install in /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master
yarn install v0.24.6
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "eslint-import-resolver-babel-module@3.0.0" has unmet peer dependency "babel-core@^6.0.0".
[4/4] 📃  Rebuilding all packages...
success Saved lockfile.
✨  Done in 4.86s.
🎉  finished installing dependencies in "/Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master"
🔑  starting install in /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api
yarn install v0.24.6
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Rebuilding all packages...
[3/3] ⠐ unicode: GET unicode.org:80/Public/UNIDATA/UnicodeData.txt
[-/3] ⠐ waiting...
[-/3] ⠐ waiting...
[-/3] ⠐ waiting...
error /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/node_modules/unicode: Command failed.
Exit code: 1
Command: sh
Arguments: -c node install.js
Directory: /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/node_modules/unicode
Output:
try to read file /usr/share/unicode/UnicodeData.txt …
/usr/share/unicode/UnicodeData.txt not found.
try to read file /usr/share/unicode-data/UnicodeData.txt …
/usr/share/unicode-data/UnicodeData.txt not found.
try to read file UnicodeData.txt …
UnicodeData.txt not found.
try to download …
GET unicode.org:80/Public/UNIDATA/UnicodeData.txt
request timed out.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
💀  error installing dependencies in "/Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api"
stopping mongod with `mongo admin --eval "db.shutdownServer()" --port 27017 &>/dev/null` (in case it is running)
starting mongod with `mongod --dbpath /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/.mongo-db --port 27017 &>/dev/null`
generating and inserting data with `cd api && ./node_modules/.bin/babel-node scripts/generate`
module.js:471
    throw err;
    ^

Error: Cannot find module 'unicode/category/So'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at symbols (/Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/node_modules/slug/slug.js:6:16)
    at /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/node_modules/slug/slug.js:199:5
    at Object.<anonymous> (/Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/node_modules/slug/slug.js:212:2)
    at Module._compile (module.js:570:32)
    at Module._extensions..js (module.js:579:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/src/models/article.js:3:1)
stopping mongod process with `mongo admin --eval "db.shutdownServer()" --port 27017 &>/dev/null`
nps executing: nps lint && node node_modules/concurrently/src/main.js --kill-others-on-fail --prefix-colors "bgBlue.bold,bgMagenta.bold,bgGreen.bold" --prefix "[{name}]" --names "split.api.verify,split.client.verify,split.e2e.verify" 'nps split.api.verify' 'nps split.client.verify' 'nps split.e2e.verify'
nps executing: eslint . --cache
[split.api.verify] nps executing: node node_modules/rimraf/bin.js api-final && split-guide generate --no-clean --templates-dir other/templates/api --exercises-dir node_modules/.tmp/api --exercises-final-dir api && node node_modules/concurrently/src/main.js --kill-others-on-fail --prefix-colors "bgBlue.bold,bgMagenta.bold" --prefix "[{name}]" --names "api.test,api.demo" 'nps api.test' 'nps api.demo' && nps split.api
[split.client.verify] nps executing: node node_modules/rimraf/bin.js client-final && split-guide generate --no-clean --templates-dir other/templates/client --exercises-dir node_modules/.tmp/client --exercises-final-dir client && node node_modules/concurrently/src/main.js --kill-others-on-fail --prefix-colors "bgBlue.bold,bgMagenta.bold" --prefix "[{name}]" --names "client.test,client.demo" 'nps client.test' 'nps client.demo' && nps split.client
[split.e2e.verify] nps executing: node node_modules/rimraf/bin.js cypress-final && split-guide generate --no-clean --templates-dir other/templates/cypress --exercises-dir node_modules/.tmp/cypress --exercises-final-dir cypress && nps e2e && nps split.e2e
[split.e2e.verify] Saved 4 files:
[split.e2e.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/cypress/.eslintrc
[split.e2e.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/cypress/.eslintrc
[split.e2e.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/cypress/e2e/users_spec.js
[split.e2e.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/cypress/e2e/users_spec.js
[split.client.verify] Saved 17 files:
[split.client.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/client/.eslintrc
[split.client.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/client/.eslintrc
[split.client.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/client/demo/unit/__tests__/customer-list.js
[split.client.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/client/demo/unit/__tests__/customer-list.js
[split.client.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/client/demo/unit/__tests__/toggle.js
[split.client.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/client/demo/unit/__tests__/toggle.js
[split.client.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/client/src/reducers/__tests__/article.js
[split.client.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/client/src/reducers/__tests__/article.js
[split.client.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/client/src/screens/__tests__/__snapshots__/editor.js.snap
[split.client.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/client/src/screens/__tests__/__snapshots__/editor.js.snap
[split.client.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/client/src/screens/__tests__/editor.js
[split.client.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/client/src/screens/__tests__/editor.js
[split.client.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/client/tests/integration/__mocks__/axios.js
[split.client.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/client/tests/integration/login.test.js
[split.client.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/client/tests/integration/login.test.js
[split.client.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/client/tests/integration/register.test.js
[split.client.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/client/tests/integration/register.test.js
[split.api.verify] Saved 28 files:
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/api/.eslintrc
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/.eslintrc
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/api/demo/integration/__tests__/users.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/demo/integration/__tests__/users.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/api/demo/unit/__tests__/get-age.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/demo/unit/__tests__/get-age.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/api/demo/unit/__tests__/make-me-a-sandwich.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/demo/unit/__tests__/make-me-a-sandwich.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/api/demo/unit/__tests__/sum.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/demo/unit/__tests__/sum.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/api/demo/unit/get-age.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/demo/unit/get-age.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/api/demo/unit/sum.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/demo/unit/sum.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/api/src/models/__tests__/user.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/src/models/__tests__/user.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/api/src/models/user.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/src/models/user.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/api/src/routes/utils/__tests__/arrayify.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/src/routes/utils/__tests__/arrayify.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/api/src/routes/utils/__tests__/get-token-from-header.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/src/routes/utils/__tests__/get-token-from-header.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/api/src/routes/utils/arrayify.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/src/routes/utils/arrayify.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/api/src/routes/utils/get-token-from-header.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/src/routes/utils/get-token-from-header.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/node_modules/.tmp/api/tests/integration/articles.test.js
[split.api.verify] /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/tests/integration/articles.test.js
[split.e2e.verify] nps executing: node node_modules/concurrently/src/main.js --kill-others-on-fail --prefix-colors "bgBlue.bold,bgMagenta.bold" --prefix "[{name}]" --names "e2e.loadDatabase,build" 'nps e2e.loadDatabase' 'nps build' && concurrently --kill-others --success first --prefix-colors "bgGreen.bold,bgBlue.bold,bgMagenta.bold,bgCyan.bold" --prefix "[{name}]" --names "client,cypress,mongo,api" "nps e2e.run.client" "nps e2e.run.cypress" "nps e2e.run.mongo" "nps e2e.run.api"
[split.api.verify] [api.test] nps executing: node node_modules/concurrently/src/main.js --kill-others-on-fail --prefix-colors "bgBlue.bold,bgMagenta.bold" --prefix "[{name}]" --names "api.test.unit,api.test.integration" 'nps api.test.unit' 'nps api.test.integration'
[split.api.verify] [api.demo] nps executing: node node_modules/concurrently/src/main.js --kill-others-on-fail --prefix-colors "bgBlue.bold,bgMagenta.bold" --prefix "[{name}]" --names "api.demo.unit.single,api.demo.integration.single" 'nps api.demo.unit.single' 'nps api.demo.integration.single'
[split.client.verify] [client.test] nps executing: node node_modules/concurrently/src/main.js --kill-others-on-fail --prefix-colors "bgBlue.bold,bgMagenta.bold" --prefix "[{name}]" --names "client.test.unit,client.test.integration" 'nps client.test.unit' 'nps client.test.integration'
[split.client.verify] [client.demo] nps executing: node node_modules/concurrently/src/main.js --kill-others-on-fail --prefix-colors "bgBlue.bold,bgMagenta.bold" --prefix "[{name}]" --names "client.demo.unit.single,client.demo.integration.single" 'nps client.demo.unit.single' 'nps client.demo.integration.single'
[split.e2e.verify] [e2e.loadDatabase] nps executing: node node_modules/cross-env/dist/bin/cross-env.js MONGO_PORT=27018 MONGO_PATH=./.e2e/mongo-db MONGODB_URI="mongodb://localhost:27018/conduit" node ./scripts/load-database.js
[split.e2e.verify] [build] nps executing: node node_modules/concurrently/src/main.js --kill-others-on-fail --prefix-colors "bgBlue.bold,bgMagenta.bold" --prefix "[{name}]" --names "build.api,build.client" 'nps build.api' 'nps build.client'
[split.api.verify] [api.demo] [api.demo.unit.single] nps executing: cd api && npm start demo.unit --silent && cd ..
[split.api.verify] [api.test] [api.test.integration] nps executing: echo nps mongo.stop && nps mongo.stop &>/dev/null || true && concurrently --kill-others --success first --prefix "[{name}]" --names dev.mongo.silent,dev.api,api.test.integration "nps dev.mongo.silent" " sleep 2 && cd api && npm start test.integration --silent && cd .. "
[split.client.verify] [client.test] [client.test.integration] nps executing: cd client && npm start test.integration --silent && cd ..
[split.e2e.verify] [e2e.loadDatabase] stopping mongod with `mongo admin --eval "db.shutdownServer()" --port 27018 &>/dev/null` (in case it is running)
[split.api.verify] [api.demo] [api.demo.integration.single] nps executing: cd api && npm start demo.integration --silent && cd ..
[split.client.verify] [client.demo] [client.demo.integration.single] nps executing: cd client && npm start demo.integration --silent && cd ..
[split.api.verify] [api.test] [api.test.unit] nps executing: cd api && npm start test.unit --silent && cd ..
[split.client.verify] [client.test] [client.test.unit] nps executing: cd client && npm start test.unit --silent && cd ..
[split.api.verify] [api.test] [api.test.integration] nps mongo.stop
[split.client.verify] [client.demo] [client.demo.unit.single] nps executing: cd client && npm start demo.unit --silent && cd ..
[split.e2e.verify] [e2e.loadDatabase] starting mongod with `mongod --dbpath ./.e2e/mongo-db --port 27018 &>/dev/null`
[split.e2e.verify] [build] [build.api] nps executing: cd api && npm start build --silent
[split.e2e.verify] [build] [build.client] nps executing: cd client && npm start build --silent
[split.api.verify] [api.demo] [api.demo.unit.single] nps executing: jest --config=demo/unit/jest.config.json
[split.api.verify] [api.demo] [api.demo.integration.single] nps executing: jest --config=demo/integration/jest.config.json
[split.client.verify] [client.test] [client.test.unit] nps executing: jest --config=tests/jest.config.unit.json --coverage
[split.client.verify] [client.demo] [client.demo.unit.single] nps executing: jest --config=demo/unit/jest.config.json
[split.client.verify] [client.demo] [client.demo.integration.single] nps executing: echo "no integration demo"
[split.client.verify] [client.test] [client.test.integration] nps executing: jest --config=tests/jest.config.integration.json --coverage
[split.client.verify] [client.test] [client.test.unit] /bin/sh: jest: command not found
[split.client.verify] [client.test] [client.test.integration] /bin/sh: jest: command not found
[split.client.verify] [client.test] [client.test.integration] The script called "test.integration" which runs "jest --config=tests/jest.config.integration.json --coverage" failed with exit code 127 https://github.com/kentcdodds/nps/blob/v5.0.5/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
[split.client.verify] [client.demo] [client.demo.integration.single] no integration demo
[split.client.verify] [client.test] [client.test.unit] The script called "test.unit" which runs "jest --config=tests/jest.config.unit.json --coverage" failed with exit code 127 https://github.com/kentcdodds/nps/blob/v5.0.5/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
[split.client.verify] [client.test] [client.test.integration] The script called "client.test.integration" which runs "cd client && npm start test.integration --silent && cd .." failed with exit code 1 https://github.com/kentcdodds/nps/blob/v5.0.5/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
[split.client.verify] [client.test] [client.test.unit] The script called "client.test.unit" which runs "cd client && npm start test.unit --silent && cd .." failed with exit code 1 https://github.com/kentcdodds/nps/blob/v5.0.5/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
[split.client.verify] [client.demo] [client.demo.integration.single] nps client.demo.integration.single exited with code 0
[split.client.verify] [client.test] [client.test.integration] nps client.test.integration exited with code 1
[split.client.verify] [client.test] --> Sending SIGTERM to other processes..
[split.client.verify] [client.demo] [client.demo.unit.single] /bin/sh: jest: command not found
[split.client.verify] [client.demo] [client.demo.unit.single] The script called "demo.unit" which runs "jest --config=demo/unit/jest.config.json" failed with exit code 127 https://github.com/kentcdodds/nps/blob/v5.0.5/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
[split.client.verify] [client.test] [client.test.unit] nps client.test.unit exited with code 1
[split.client.verify] [client.demo] [client.demo.unit.single] The script called "client.demo.unit.single" which runs "cd client && npm start demo.unit --silent && cd .." failed with exit code 1 https://github.com/kentcdodds/nps/blob/v5.0.5/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
[split.client.verify] [client.test] The script called "client.test" which runs "node node_modules/concurrently/src/main.js --kill-others-on-fail --prefix-colors "bgBlue.bold,bgMagenta.bold" --prefix "[{name}]" --names "client.test.unit,client.test.integration" 'nps client.test.unit' 'nps client.test.integration'" failed with exit code 1 https://github.com/kentcdodds/nps/blob/v5.0.5/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
[split.client.verify] [client.demo] [client.demo.unit.single] nps client.demo.unit.single exited with code 1
[split.client.verify] [client.test] nps client.test exited with code 1
[split.client.verify] --> Sending SIGTERM to other processes..
[split.client.verify] [client.demo] The script called "client.demo" which runs "node node_modules/concurrently/src/main.js --kill-others-on-fail --prefix-colors "bgBlue.bold,bgMagenta.bold" --prefix "[{name}]" --names "client.demo.unit.single,client.demo.integration.single" 'nps client.demo.unit.single' 'nps client.demo.integration.single'" failed with exit code 1 https://github.com/kentcdodds/nps/blob/v5.0.5/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
[split.client.verify] [client.demo] nps client.demo exited with code 1
[split.client.verify] The script called "split.client.verify" which runs "node node_modules/rimraf/bin.js client-final && split-guide generate --no-clean --templates-dir other/templates/client --exercises-dir node_modules/.tmp/client --exercises-final-dir client && node node_modules/concurrently/src/main.js --kill-others-on-fail --prefix-colors "bgBlue.bold,bgMagenta.bold" --prefix "[{name}]" --names "client.test,client.demo" 'nps client.test' 'nps client.demo' && nps split.client" failed with exit code 1 https://github.com/kentcdodds/nps/blob/v5.0.5/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
[split.client.verify] nps split.client.verify exited with code 1
--> Sending SIGTERM to other processes..
[split.api.verify] [api.test] [api.test.unit] nps executing: jest --config=tests/jest.config.unit.json --coverage
[split.api.verify] [api.test] [api.test.integration] [dev.mongo.silent] nps executing: nps mongo.silent
[split.e2e.verify] [build] [build.api] nps executing: node node_modules/rimraf/bin.js dist && babel --copy-files --out-dir dist --ignore __tests__,__mocks__ src
[split.e2e.verify] [build] [build.client] nps executing: react-scripts build
[split.api.verify] [api.test] [api.test.unit] nps api.test.unit exited with code null
[split.api.verify] [api.test] --> Sending SIGTERM to other processes..
[split.api.verify] [api.test] [api.test.integration] [dev.mongo.silent] nps dev.mongo.silent exited with code null
[split.api.verify] [api.test] [api.test.integration] --> Sending SIGTERM to other processes..
[split.api.verify] [api.test] [api.test.integration] [dev.api]  sleep 2 && cd api && npm start test.integration --silent && cd ..  exited with code null
[split.api.verify] [api.test] [api.test.integration] nps api.test.integration exited with code null
[split.api.verify] [api.test] nps api.test exited with code null
[split.api.verify] --> Sending SIGTERM to other processes..
[split.api.verify] [api.demo] [api.demo.integration.single] nps api.demo.integration.single exited with code null
[split.api.verify] [api.demo] --> Sending SIGTERM to other processes..
[split.e2e.verify] [e2e.loadDatabase] nps e2e.loadDatabase exited with code null
[split.e2e.verify] --> Sending SIGTERM to other processes..
[split.e2e.verify] [build] [build.api] nps build.api exited with code null
[split.e2e.verify] [build] --> Sending SIGTERM to other processes..
[split.api.verify] [api.demo] [api.demo.unit.single] nps api.demo.unit.single exited with code null
[split.api.verify] [api.demo] nps api.demo exited with code null
[split.api.verify] nps split.api.verify exited with code null
[split.e2e.verify] [build] [build.client] Creating an optimized production build...
[split.e2e.verify] [build] [build.client] Compiled with warnings.
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/index.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/store.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/app.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/reducer.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/middleware.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/app.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/editor.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/login.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/profile.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/profile-favorites.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/register.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/settings.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/article/index.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/home/index.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/reducers/article.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/reducers/common.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/reducers/article-list.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/reducers/auth.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/reducers/editor.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/reducers/profile.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/reducers/home.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/reducers/profile-favorites.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/reducers/settings.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/shared/agent.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/shared/components/header.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/shared/components/list-errors.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/shared/containers/profile.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/article/article-meta.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/article/comment-container.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/home/banner.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/home/main-view.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/home/tags.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/shared/components/article-list.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/article/comment-input.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/article/comment-list.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/article/article-actions.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/shared/components/article-preview.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/shared/components/list-paginati
[split.e2e.verify] on.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/article/comment.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] ./src/screens/article/delete-button.js
[split.e2e.verify] [build] [build.client]   Line 1:  Definition for rule 'jsx-a11y/alt-text' was not found  jsx-a11y/alt-text
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] Search for the keywords to learn more about each warning.
[split.e2e.verify] [build] [build.client] To ignore, add // eslint-disable-next-line to the line before.
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] File sizes after gzip:
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client]   91.12 KB  build/static/js/main.99932159.js
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] The project was built assuming it is hosted at the server root.
[split.e2e.verify] [build] [build.client] To override this, specify the homepage in your package.json.
[split.e2e.verify] [build] [build.client] For example, add this to build it for GitHub Pages:
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client]   "homepage" : "http://myname.github.io/myapp",
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] The build folder is ready to be deployed.
[split.e2e.verify] [build] [build.client] You may serve it with a static server:
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client]   yarn global add serve
[split.e2e.verify] [build] [build.client]   serve -s build
[split.e2e.verify] [build] [build.client] 
[split.e2e.verify] [build] [build.client] nps build.client exited with code null
[split.e2e.verify] [build] nps build exited with code null
[split.e2e.verify] nps split.e2e.verify exited with code null
The script called "validate" which runs "nps lint && node node_modules/concurrently/src/main.js --kill-others-on-fail --prefix-colors "bgBlue.bold,bgMagenta.bold,bgGreen.bold" --prefix "[{name}]" --names "split.api.verify,split.client.verify,split.e2e.verify" 'nps split.api.verify' 'nps split.client.verify' 'nps split.e2e.verify'" failed with exit code 1 https://github.com/kentcdodds/nps/blob/v5.0.5/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code

The output when I run sudo npm start dev.api

nps is executing `dev.mongo`: nps mongo
nps is executing `mongo`: mkdirp .mongo-db && nps mongo.start
nps is executing `mongo.start`: mongod --dbpath "/Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/.mongo-db"
2017-06-16T12:45:02.255+0200 I CONTROL  [initandlisten] MongoDB starting : pid=10136 port=27017 dbpath=/Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/.mongo-db 64-bit host=MBP-Szymon.bn.org.pl
2017-06-16T12:45:02.255+0200 I CONTROL  [initandlisten] db version v3.4.4
2017-06-16T12:45:02.255+0200 I CONTROL  [initandlisten] git version: 888390515874a9debd1b6c5d36559ca86b44babd
2017-06-16T12:45:02.255+0200 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.2l  25 May 2017
2017-06-16T12:45:02.255+0200 I CONTROL  [initandlisten] allocator: system
2017-06-16T12:45:02.255+0200 I CONTROL  [initandlisten] modules: none
2017-06-16T12:45:02.255+0200 I CONTROL  [initandlisten] build environment:
2017-06-16T12:45:02.255+0200 I CONTROL  [initandlisten]     distarch: x86_64
2017-06-16T12:45:02.255+0200 I CONTROL  [initandlisten]     target_arch: x86_64
2017-06-16T12:45:02.255+0200 I CONTROL  [initandlisten] options: { storage: { nps executing: cd api && npm start dev --silent
nps executing: nodemon --watch ./src --exec babel-node ./src
[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/src/**/*
[nodemon] starting `babel-node ./src`
module.js:471
    throw err;
    ^

Error: Cannot find module 'unicode/category/So'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at symbols (/Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/node_modules/slug/slug.js:6:16)
    at /Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/node_modules/slug/slug.js:199:5
    at Object.<anonymous> (/Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/node_modules/slug/slug.js:212:2)
    at Module._compile (module.js:570:32)
    at Module._extensions..js (module.js:579:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/szymonhernik/Documents/CODE/FrontendMasters/Tests_JS/testing-workshop-master/api/src/models/article.js:3:1)
[nodemon] app crashed - waiting for file changes before starting...

Suggested solution:

I have no idea how to help myself...

kentcdodds commented 7 years ago

Hi! I'm sorry you're experiencing this trouble! I've improved the troubleshooting section. Could you check that and see if those instructions help resolve your issue? Let me know what you find!

kentcdodds commented 7 years ago

I'm going to go ahead and close this because I'm 99% sure that what I have in troubleshooting now will help you. Feel free to comment in here if you like though :+1:

kentcdodds commented 7 years ago

I'm actually going to remove slug in favor of slugify which doesn't depend on unicode which will make life much better for everyone. Why don't you try again from the beginning and see if that works better for you. Thanks!

szymonhernik commented 7 years ago

@kentcdodds Thank you for your prompt reply. Now, everything works excellent when I run npm start dev.