Open Konubinix opened 1 year ago
Hi.
For your information, the fact ts-node and playwright both try to transpile typescript and play with the sourcemap, the stack trace is not reliable.
See for instance the fork I made here https://github.com/Konubinix/cucumber-playwright/tree/show-stack-trace-error
Run npm test
The error is show like this
It points to custom-world.ts at line 11, while the error is actually at line 30.
I already pointed out the issue in playwright (see https://github.com/microsoft/playwright/issues/26346). So far, I doubt there is an easy workaround.
Trying to find out how people mitigated the issue, I found out that peolpe apparently did not notice it. So I figured I should warn you.
Hopefully you will help contribute in using playwright in cucumber confortable.
My best,
For your information, a pull request is ongoing to fix that issue.
Also, I added a workaround in case you cannot upgrade playwright.
Hi.
For your information, the fact ts-node and playwright both try to transpile typescript and play with the sourcemap, the stack trace is not reliable.
See for instance the fork I made here https://github.com/Konubinix/cucumber-playwright/tree/show-stack-trace-error
Run npm test
The error is show like this![image](https://github.com/Tallyb/cucumber-playwright/assets/1181438/5e6b0083-ba4f-45a5-ac91-5335ebf016a7)
It points to custom-world.ts at line 11, while the error is actually at line 30.
I already pointed out the issue in playwright (see https://github.com/microsoft/playwright/issues/26346). So far, I doubt there is an easy workaround.
Trying to find out how people mitigated the issue, I found out that peolpe apparently did not notice it. So I figured I should warn you.
Hopefully you will help contribute in using playwright in cucumber confortable.
My best,