When trying to run Artillery with Playwright and Typescript im getting '../package.json' not found error #3372
KrzysztofDuda80
started this conversation in
Artillery
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We do have repository of tests which are written using
playwright
library and they are run usingartillery
runner. It was written in JS, but im moving it to Typescript. We want to have more control over code and also we want to useplaywright
runner for functional testing andartillery
runner for load testing. But im having issues with running code after updating to TS.Ive moved files extensions to .ts, updated imports, created tsconfig and linter config. Also installed TS dependencies.
But when i try to run tests im getting this error:
This happens when im trying to run "directly" as well as when im trying to use
esbuild
to bundle things.So the question is. What im doing wrong and how to configure things to make it work? Why its always looking for
package.json
in relative folder? is there any way to configure this behavior?Beta Was this translation helpful? Give feedback.
All reactions