I am using a pnpm workspace with different packages to distinguish the modules. I intend to use CodeceptJS as my test automation framework but whenever I install and initialize CodeceptJS in the root directory (pnpm add -w codeceptjs playwright
then pnpm dlx codeceptjs init
), it is not recognized within the individual packages.
If I do pnpm dlx codeceptjs init
within a package, it gives this warning: "WARNING: CodeceptJS is not installed locally. It is recommended to switch to local installation" and then installs CodeceptJS in that package. Is it possible to have one shared instance of CodeceptJS with Playwright for a monorepo setup as opposed to installing it one-by-one in all packages?
Here is my directory structure:
root
├──node_modules
│
├──packages
│ ├──package1
│ │ ├──node_modules
│ │ └──package.json
│ └──package2
│ ├──node_modules
│ └──package.json
|
└──package.json