Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 339 Bytes

File metadata and controls

7 lines (4 loc) · 339 Bytes

Import Third-Party Modules

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.