0

I would like to run tests from another fixtures using assertions like: .describe .it .fit .test, etc

I already import the Testcafe module:

import { testcafe} from 'testcafe';

Or

import { t, Selector, describe} from 'testcafe';

And I tried many other combinations but always I get the same error.

I have installed locally the last version of Testcafe and I have installed the latest chai package.

I am on windows 11 with the last version of node.js.

This is the error:

_index.X is not a function

Where "X" is any of these: fit it describe fdescribe, etc

Note: Other functions as fixture, test, constructor, are working without any issue.

Yaroslavm
  • 1,762
  • 2
  • 7
  • 15

1 Answers1

0

According to the Test API there's only one global function: test, which fulfills and combines the roles of both describe and it from jest or similar.

Vivick
  • 3,434
  • 2
  • 12
  • 25
  • But I already trying importing "test" with this format: import { test } from 'testcafe'.I received the same error, for this scenario the error is: _index.X is not a function – Cricrobal Cesar Aug 05 '23 at 23:03
  • We're going to need to know more about your setup, a reproducible example would be great – Vivick Aug 06 '23 at 05:22