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)
Faker would be the best fake data generator. First you need to add the faker library into your testing directory. Then just add a custom script and get any data you need by calling the data.