Page Contents

Home > @loopback/testlab > TestSandbox > writeTextFile

TestSandbox.writeTextFile() method

Creates a new file and writes the given data as a UTF-8-encoded text.

Signature:

writeTextFile(dest: string, data: string): Promise<void>;

Parameters

Parameter Type Description
dest string Destination filename, optionally including a relative path.
data string The text to write.

Returns:

Promise<void>