Test Code: index.js
This example shows how to import a third-party Node.js module in test code.
The nanoid module is imported to the index.js
test file with the import
statement. nanoid
is then used in test code to generate a random input value.