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

Improve browser and headless test documentation and examples #20

Merged
merged 11 commits into from
Jan 4, 2024

Conversation

jmatsushita
Copy link
Contributor

A few improvements:

  • Restore descriptions in default html reporter #14 fix the lack of group descriptions in the browser
  • provide example package.json scripts to run tests with various approaches:
    • test:node with the node mocha CLI
    • test:browser with parcel
    • test:browser:module with parcel with the test file as an esm module
    • test:headless to run headless with puppeteer (via mocha-headless-chrome)
  • added a headless test in CI.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's up with Yarn, why is it necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It probably wasn't. Removed! 👍

test/index.html Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please move index.html, index_module.html, and index_module.js to a subdirectory? Perhaps ./test/browser

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing!

@jmatsushita
Copy link
Contributor Author

Hi @fsoikin thanks for the review and sorry for the huge lag. But I needed this so I thought I'd brush it up and address your comments. Hope this works!

.gitignore Outdated Show resolved Hide resolved
Copy link
Member

@fsoikin fsoikin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thank you for the contribution!

@fsoikin fsoikin merged commit a54ae10 into purescript-spec:master Jan 4, 2024
1 check passed
@fsoikin
Copy link
Member

fsoikin commented Jan 4, 2024

Published v5.1.0

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

Successfully merging this pull request may close these issues.

2 participants