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
npm create checkly
All default options selected with TS and "'Advanced Example Project'" + deps installation
open created projects in WebStorm 2024.2 running on Kali Linux 2024.2 LTS
What is expected?
PW types are expected to be available in IDE after default project installation
What is actually happening?
PW types are not available for IDE due to missed PW dependency in default package.json
Any additional comments?
To use PR types, I currently need to install them manually as described in ReadMe. It would be fantastic if they were included by default when creating a project with the CLI since PW files coming with CLI create command it is expected that types will be available out of the box.
Thank you in advance — you're building an amazing product!
The text was updated successfully, but these errors were encountered:
While the original reasoning is unknown to me, as I have only very recently taken over the CLI, I believe the idea here has been that since you should match @playwright/test to the version available in your chosen runtime, it has probably been left out on purpose. It would likely be a better OOTB experience to just include the dependency anyway, with a version that matches the latest stable runtime, and include instructions to change the version when needed.
Hi @sorccu
Yes, I noticed the reference in the README about additional installation for this package, and I mentioned it in the original ticket description. From my perspective, it’s reasonable to expect that a project should work without extra setup right out of the CLI. This behavior aligns with expectations: what comes from an official blueprint should work out of the box.
Since Playwright (PW) tests are included in the official blueprint, it would be logical for the CLI to handle the necessary dependencies. This could be done as part of the main installation process or through a separate post-install script that logs errors differently.
Regarding the version-lock functionality you mentioned, most major package managers are quite advanced in handling this. It would be much safer to include PW as a dependency with a locked version to ensure compatibility with the current Checkly version. I’d recommend including it and locking the version. Let me know if you’d like me to create a PR for this.
By the way, it would be great to support PW as a library, not just playwright/test, since there are cases where this is necessary. Additionally, I’m really missing native support for Python and Java, which are significant parts of the PW community. Are there any plans to support Python or Java as PW does out of the box, or at least at the level of a transpiler?
Since Checkly has a core dependency like Playwright (PW), I would suggest locking the PW version in the dependencies. For major Checkly releases, a CLI solution could be provided to handle migrations in a seamless way, accompanied by a detailed migration guide. This approach would be similar to what Angular CLI does, ensuring a smooth upgrade path while maintaining compatibility and minimizing disruptions for users.
Node.js version
18.18.0
NPM version
9.8.1
@checkly/cli version
4.14.0
Steps to reproduce
npm create checkly
All default options selected with TS and "'Advanced Example Project'" + deps installation
open created projects in WebStorm 2024.2 running on Kali Linux 2024.2 LTS
What is expected?
PW types are expected to be available in IDE after default project installation
What is actually happening?
PW types are not available for IDE due to missed PW dependency in default package.json
Any additional comments?
To use PR types, I currently need to install them manually as described in ReadMe. It would be fantastic if they were included by default when creating a project with the CLI since PW files coming with CLI create command it is expected that types will be available out of the box.
Thank you in advance — you're building an amazing product!
The text was updated successfully, but these errors were encountered: