Skip to content

Running testcafe suite throws Error 'minimatch' that fails Typescript compilation after updating to the Latest 3.7.0 version. #8423

@SamShot81

Description

@SamShot81

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

Image

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

Metadata

Metadata

Assignees

Labels

HAS WORKAROUNDTYPE: bugThe described behavior is considered as wrong (bug).

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions