How to upload an extension on Chrome with JS-TestCafe?

Tell me the method to upload an extension on Chrome with JS-TestCafe.

Hello Macy,

You can use the following command format to upload an extension on Chrome with JS-TestCafe:

var file = File("path/to/some/file");

Here is the reference link: