-
Notifications
You must be signed in to change notification settings - Fork 681
Description
What is your Scenario?
I am trying to run the testcases locally that I do everyday. I updated the testcafe to version 3.7.0 and ran the same suite and saw the following error :
Cannot prepare tests due to the following error:
Error: TypeScript compilation failed.
Cannot find type definition file for 'minimatch'.
The file is in the program because:
Entry point for implicit type library 'minimatch'
What is the Current behavior?
No tests are run
What is the Expected behavior?
The test should run normally like the past versions
What is the public URL of the test page? (attach your complete example)
https://portal.fsm.epicor.com/Identity/Account/Login
What is your TestCafe test code?
I have 1000 testcases running successfully before updating testcafe
Your complete configuration file
module.exports = {
selectorTimeout: 3000,
assertionTimeout: 3000,
skipJsErrors: true,
hooks: {
// fixture:{
// before: async (t) => {
// await t
// .maximizeWindow();
// }
// },
test: {
before: async (t) => {
await t
.maximizeWindow();
},
},
reporter: {
onBeforeWrite: {
'spec': hookFunction
},
},
},
};
let i = 1
function hookFunction(writeInfo, testRuninfo, name) {
if (writeInfo.initiator === 'reportTestDone') { // Determine the reporter event
const dateTime = new Date().toLocaleString('en-US', { timeZone: 'GMT' });
writeInfo.formattedText = i++ + " - " + dateTime + writeInfo.formattedText;
//writeInfo.formattedText = "NUMBER OF TEST EXECUTED : " + (++i)
};
}
Your complete test report
Screenshots

Steps to Reproduce
TestCafe version
3.7.2
Node.js version
21.6.2
Command-line arguments
testcafe chrome filepath.js
Browser name(s) and version(s)
Chrome
Platform(s) and version(s)
Windows
Other
No response