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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We do have repository of tests which are written using
playwrightlibrary and they are run usingartilleryrunner. It was written in JS, but im moving it to Typescript. We want to have more control over code and also we want to useplaywrightrunner for functional testing andartilleryrunner 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
esbuildto 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.jsonin relative folder? is there any way to configure this behavior?Beta Was this translation helpful? Give feedback.
All reactions