Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvalNodeScript ¶
func EvalNodeScript[T any](t testing.TB, script string, dir string, args ...string) (result T, err error)
EvalNodeScript imports a Node.js script that deafult-exports a single function, calls it with the provided arguments, and unmarshals the JSON-stringified awaited return value into T.
func EvalNodeScriptWithTS ¶
func EvalNodeScriptWithTS[T any](t testing.TB, script string, dir string, args ...string) (result T, err error)
EvalNodeScriptWithTS is like EvalNodeScript, but provides the TypeScript library to the script as the first argument.
func SkipIfNoNodeJS ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.