Graphback: Jest is required to run tests but not part of dev dependencies

Created on 3 Oct 2020  路  4Comments  路  Source: aerogear/graphback

  • All modules:
  • 1.0.1:
  • Node.js v10.16.0 / npm 6.9.0

Steps to reproduce:

  • Clone fresh copy of repository
  • Run npm install
  • Run npm test

Output:

> [email protected] test C:\Users\kamme\Desktop\Repos\Hacktoberfest\graphback
> jest -w 1

'jest' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Test failed.  See above for more details.
bug tests triage

Most helpful comment

Thanks for the fix @Odin94! We recommend using yarn as we use yarn workspaces which hoists all dependencies into the root node_modules. However we should still allow npm users to work with the project and so having jest as a dependency here is great. Massive thank you for this!

All 4 comments

Automatically generated comment to notify maintainers
/cc @craicoverflow, @machi1990, @wtrocki

Update:

Using NodeJS 12 and yarn fixed it

Thanks for the fix @Odin94! We recommend using yarn as we use yarn workspaces which hoists all dependencies into the root node_modules. However we should still allow npm users to work with the project and so having jest as a dependency here is great. Massive thank you for this!

Was this page helpful?
0 / 5 - 0 ratings