We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
latest
LTS
WDIO Testrunner
n/a
When running component tests WebdriverIO is able to mock imports from dependent imports. This is possible by having it rewrite the chunk from:
import foo from 'bar'
to
import * as __wdioImport_0 from 'bar' const { default: foo } = wdioImport('bar', __wdioImport_0)
However this fails if you import a module directly, e.g.
import 'bar'
Have it work in the same way as for other imports.
Change this line: https://github.com/webdriverio/workshop/blob/main/solutions/chapter_13/src/todo-app.test.ts#L28 to a direct import and see the test failing.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Have you read the Contributing Guidelines on issues?
WebdriverIO Version
latest
Node.js Version
LTS
Mode
WDIO Testrunner
Which capabilities are you using?
What happened?
When running component tests WebdriverIO is able to mock imports from dependent imports. This is possible by having it rewrite the chunk from:
to
However this fails if you import a module directly, e.g.
What is your expected behavior?
Have it work in the same way as for other imports.
How to reproduce the bug.
Change this line: https://github.com/webdriverio/workshop/blob/main/solutions/chapter_13/src/todo-app.test.ts#L28 to a direct import and see the test failing.
Relevant log output
Code of Conduct
Is there an existing issue for this?
The text was updated successfully, but these errors were encountered: