Skip to content

Latest commit

 

History

History

import-third-party-modules

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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.