core3-utils

npm version @wixc3/testing-node on Github

Home > @wixc3/testing-node

testing-node package

Utils for making mocha + chai testing easy and fun

Remarks

Steps

Steps are a convenient way to craft async tests. A step has a timeout and a description, making test timeouts easy to understand and debug. Each step timeout auto increases the test timeout, assuring the step will time out before the test

Available steps:

Test timeout manipulation

Functions

Function Description
[createTestDir(prefix, disposalOptions, disposeAfter)](/core3-utils/testing-node.createtestdir.html) Creates a test temporary directory The directory will be deleted after the test, thus not suitable for suites ("describe")

Variables

Variable Description
[DISPOSE\_OF\_TEMP\_DIRS](/core3-utils/testing-node.dispose_of_temp_dirs.html)