You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running tests with yarn version 2 fails with a bunch of errors like
The "@nestjs/platform-express" package is missing. Please, make sure to install this library ($ npm install @nestjs/platform-express) to take advantage of NestFactory.
Yarn version 2 started using the Plug-n-Play API, which prevents packages from require-ing dependencies not explicitly listed in the package's package.json. I'm not sure what the best solution is, but one solution is to add @nestjs/platform-express as a peer dependency for @nestjs/testing. This workaround works for me
Bug Report
Current behavior
Running tests with yarn version 2 fails with a bunch of errors like
Yarn version 2 started using the Plug-n-Play API, which prevents packages from
require
-ing dependencies not explicitly listed in the package'spackage.json
. I'm not sure what the best solution is, but one solution is to add@nestjs/platform-express
as a peer dependency for@nestjs/testing
. This workaround works for meInput Code
Expected behavior
Possible Solution
Environment
The text was updated successfully, but these errors were encountered: