Hello!
I’m trying to use the library “openapi-request-validator” with K6.
I used the following template : GitHub - grafana/k6-template-typescript: Template to use TypeScript with k6
When running, K6 fail with an error :
ERRO[0000] SyntaxError: file:///Users/geoffreyragot/Work/numary/k6/dist/all-test.js: Unexpected token (1962:24)
1960 | binary: true
1961 | };
> 1962 | exports.fastFormats = { ...exports.fullFormats,
| ^
It seems to be a transpilation issue.
The code which use the syntax is located at “node_modules/openapi-request-validator/node_modules/ajv-formats”.
I don’t find how to indicate to babel to transpile this module.
Any idea?