'monorepo adding unit tests to 1 package

I have inherited a monorepo that looks like this,

my-project
   - packages
       - components
       - client
       - mobile
   packages.json

I am new to monorepo infrastructure so I am not full 100% on how they are structured yet. The components package is a vue project that was create via the vue-cli but no testing was added at project creation.

In a monorepo do all packages inherit dependencies from the package.json in the root of the project and if so do I add the unit testing depencies there? Or do I just run vue add jest-test in the root of the components package?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source