I have my TestCafe page models grouped together in different project repositories.
When I try to use these page model repositories/packages in the main project that has the tests, I get various different errors. The latest error I get when I try to run a test that makes use of a page model in a different package is this:
Cannot implicitly resolve the test run in the context of which the test controller action should be executed. Use test function's 't' argument instead.
My page model repository uses babel and has the following in the babelrc file:
{
"presets": [
[
"@babel/preset-env", {
"targets": {
"node": true
},
"modules": "commonjs",
"forceAllTransforms": true,
"debug": true
}
]
]
}
If I don't use babel on the page model repositories, I get issues related to unknown import tokens.
Can someone give me advice on how to get a multiple repository TestCafe project working?
Aucun commentaire:
Enregistrer un commentaire