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

Use puppeteer for testing #4

Open
jankapunkt opened this issue Jan 16, 2022 · 1 comment
Open

Use puppeteer for testing #4

jankapunkt opened this issue Jan 16, 2022 · 1 comment

Comments

@jankapunkt
Copy link
Member

We need to run tests with puppeteer to simulate browser env, too.

Also the test "supports long stack traces" contains a muted line, that depends on window.navigator, which requires puppeteer to have this variable present.

@jankapunkt
Copy link
Member Author

This turns out to be much harder than expected. It's pretty easy to install and launch puppeteer but executing the tests within the browser js context reqires to spawn the full mocha suite within this env, otherwise the parts executed in the browser env will miss all necessary scope from the test suite. Will investigate how meteortesting:mocha does it, since they got it running, too this way

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

1 participant