I have migrated our test scripts for k6 0.52. Our project is based on the k6 Typescript template on GitHub. With version 0.52 and with GitHub - grafana/xk6-ts: TypeScript support for k6 it is now possible to run k6 run src/folder/my_script.ts
on the local system, so I don’t need to run npx webpack
before executing the script.
Now we tried to use this scripts also in a distributed environment with the k6 operator. We see in the log file the following command k6 archive /test/folder/my_script.ts -O /tmp/preparation.ts.archived.tar --include-system-env-vars --tag ...
. This command fails. I tried the command locally and it fails also. So it seems, that this command is not able to understand Type script or the original k6 without extensions is used.
Is there a possibility to use the Typescript file directly in a distributed environment with the k6 operator and the customized k6 with extensions.