Search code examples
testingautomationautomated-testse2e-testingtestcafe

testcafe seems to not be compatible with last version of logSymbol


I try to use last version of LogSymbol, that provides a breaking change due to esm compatibility.

But using Gherkin-testcafe and then testcafe, it seem compilation failed due to no esm support.

I don't why I get this error from testcafe: 1

if I try to override testcafe typescript compilation options but I get this error: 2

A sample of project with my issue is avalaible here: https://github.com/bbutel/testcafe-logSymbol-issues


Solution

  • TestCafe cannot work with pure ESM modules like logSymbols because built-in TestCafe compilers transpile all test code to the commonjs format, which in not supported by the latest version of logSymbols. Thus, to solve the issue, you need to use the commonjs version of the logSymbols module.