I'm new to TestCafe and TypeScript.
I was trying to integrate the NanoID module to TestCafe following this tutorial. But it shows an error saying Cannot find module 'nanoid' or its corresponding type declarations. (2307)
.
But when I tried with uuid, it worked for the following code.
var uuid = require("uuid");
var id = uuid.v4();
How can I fix this or can you recommend me another module like faker.js?
(I want to generate random data for testing purposes)
The official documentation is incomplete , without showing where the module should stay. https://docs.devexpress.com/TestCafeStudio/401265/test-actions/custom-scripts#import-third-party-modules
Like they said , "The modules should be installed in the test directory." but if you do this using NPM INSTALL is still not working. I do not belive that there is a way to add node modules to TestCafe Studio until now.