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
When setting the compilerOption esModuleInterop to true
compilerOption
true
Example test:
import percySnapshot from '@percy/testcafe'; fixture('Session').page('http://localhost:8080'); test('Session: Visual Regression', async (target) => { await percySnapshot(target, 'Session: Welcome'); });
(ignore type error with percySnapshot, covered in #108)
Gives me an error of:
1) TypeError: testcafe_1.default is not a function Browser: Chrome 90.0.4430.212 / macOS 10.15.7 8 | 9 |import percySnapshot from '@percy/testcafe'; 10 |fixture('Session').page('http://localhost:8080'); 11 | 12 |test('Session: Visual Regression', async target => { > 13 | await percySnapshot(target, 'Session: Welcome'); 14 |}); 15 |
import * as percySnapshot from '@percy/testcafe'; fixture('Session').page('http://localhost:8080'); test('Session: Visual Regression', async target => { await (percySnapshot as any)(target, 'Session: Welcome'); });
(replace the any with the type when fixed)
any
DevExpress/testcafe#3983
https://stackoverflow.com/questions/56238356/understanding-esmoduleinterop-in-tsconfig-file
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open for more than 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.
Sorry, something went wrong.
@Robdel12 Still hasn't been actioned and is an active issue Only changes I can see in the repo seem to be dependency or github actions related :)
No branches or pull requests
When setting the
compilerOption
esModuleInterop totrue
Issue
Example test:
(ignore type error with percySnapshot, covered in #108)
Gives me an error of:
Workaround
(replace the
any
with the type when fixed)Futher Reading
DevExpress/testcafe#3983
https://stackoverflow.com/questions/56238356/understanding-esmoduleinterop-in-tsconfig-file
The text was updated successfully, but these errors were encountered: