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
This means we should let users to require modules before running the tests. Node.js support this out of the box with --require hook to preload modules before running the file.
Add -r, --require option to the CLI to add support for other module formats and extensions
// For TS
npx @elastic/synthetics -r ts-node/register --dir tests
// For ESM
npx @elastic/synthetics -r esm --dir tests
The text was updated successfully, but these errors were encountered:
fix#84
first class support for TS/JS.
Adds a new flag -r, --require <modules> to preload modules that are required for running various module formats. Examples include handling .ts files via ts-node/register and possible to do ECMAScript modules via esm package through which would be useful for .mjs files
Updated all the examples to be compatible with .journey.ts files to be supported out of the box.
--require
hook to preload modules before running the file.-r, --require
option to the CLI to add support for other module formats and extensionsThe text was updated successfully, but these errors were encountered: