@thimpat/testutils

1.4.1 • Public • Published

Description

A library that contains many utility functions to use with automated tests.

Functions


sleep(ms)

Pause in milliseconds


replaceTextInFile(filepath, regex, replacement)

Replace some text


getContent(filepath)

Returns file content


isJson(str)

Tell whether a string is json formatted

Changelog

  • Update a function

Package Sidebar

Install

npm i @thimpat/testutils

Weekly Downloads

5

Version

1.4.1

License

MIT

Unpacked Size

150 kB

Total Files

6

Last publish

Collaborators

  • thimpat