Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After return original code without transpiling, there is error '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.' #6283

Closed
IssacH opened this issue Jun 6, 2021 · 1 comment

Comments

@IssacH
Copy link

IssacH commented Jun 6, 2021

Hi @miherlosev @AndreyBelym @pavelgruba @kirovboris @benmonro

I tried to change the code a little bit under compiler.js

In the _compileCode function, the return value will be 'compiled.code'. And when I tried to change the return value with 'code', and then I started my test specs, there will be error '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.' Is there any workaround to bypass this? Since I was trying not to use babel to transpile the async/await code.

Thanks,
Issac

@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Jun 6, 2021
@wentwrong
Copy link
Contributor

TestCafe requires test code to be transpiled in order to operate properly, so omitting the compilation phase breaks things. Currently, there is no workaround for showing stack traces in the origin Node.js format or skipping transpiling of async/await code - these are limitations based on how TestCafe works internally. Please use #6067 to track our progress with async stack traces.

@need-response-app need-response-app bot removed the STATE: Need response An issue that requires a response or attention from the team. label Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants