gauge-ts
gauge-ts copied to clipboard
Potential Conflict Of source-map-support with playwright
Describe the bug Potential Conflict of source-map-support usage with Playwright
To Reproduce Steps to reproduce the behavior:
- Create a standerd gauge-ts project
- implement step using playwright, and throw Error on purpose
- run spec using the step defined above
- The Error Stacktrace will not refer to the correct position where the Error throw up.
Expected behavior
A clear and concise description of what you expected to happen.
Stacktrace with correctly line number.
Screenshots
If applicable, add screenshots to help explain your problem.
no
Desktop (please complete the following information):
- OS: [e.g. linux] Windows
- Gauge and plugin version [run
gauge -v
] 1.4.3 & 0.1.1 - Node version [run
node -v
] v18.14.2 - Npm version [run
npm -v
] 9.6.0
This bug may should not be here, but can be a notification if someone else find the same error of the Error traceback info.
After dig into the source, I found it's conflict with @playwright/test
which introduce source-map-support
.
So if u r using playwright
alone, that could be fine. But @playwright/test
have some extension of expect that make test more easier. Maybe it can be a feature request to @playwright/test
to seperate a @playwright/expect
.