I am using the testcaferc.js file for congfiguration.
And I see the following error when I run the test:
An error has occurred while reading the ".....testcaferc.js" configuration file. ERROR Cannot find the browser. "./test1.js" is neither a known browser alias, nor a path to an executable file.
My project has the following folders/files:
- node modules folder
- .testcaferc.js
- package-lock.json
- package.json
- test1.js
1. The contents of .testcaferc.js
Note: I have tried all sorts of quotes to specify the browser, but none of the combination worked. some examples below:
module.exports = {
skipJsErrors: true,
"browsers": "chrome"
// other settings
}
or
module.exports = {
skipJsErrors: true,
browsers: "chrome"
}
or
module.exports = {
skipJsErrors: true,
browsers: 'chrome'
}
2. The contents of test1.js file





.testcaferc.jsthe entire content? How do you run tests: from the console or withTestRun? Please share all the information we need to reproduce the bug. If possible, please create a reproducible example as shown here: testcafe.io/402636/….