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 broccoli-test-helper to make tests easier to work with #76

Merged
merged 2 commits into from Oct 29, 2020

Conversation

lukemelia
Copy link
Contributor

@lukemelia lukemelia commented Oct 28, 2020

  • Also update mocha to support async/await tests

In the time since tests were first written for this plugin, broccoli-test-helper was created, which allows describing input and expected output directories in code in the test body. This improves the readability and ability to manage the tests.

Once this is merged, I have some other improvements that build on top of it to modernize this addon and optionally enable caching. This is part of build performance work funded by @PrecisionNutrition.

@lukemelia lukemelia changed the title Use broccoli fixture to make tests easier to work with. Use broccoli-fixture to make tests easier to work with. Oct 28, 2020
Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

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

This is really nice, these tests are massively easier to read this way. Thanks for working on it!

package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@lukemelia lukemelia changed the title Use broccoli-fixture to make tests easier to work with. Use broccoli-test-helper to make tests easier to work with Oct 28, 2020
Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

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

Looks good, will merge once #77 lands.

- node 10 is the oldest maintained version of node as of this writing
- Update mocha to support async/await tests, too
- Adds chai for nicer assertion syntax
@lukemelia
Copy link
Contributor Author

Thanks. I've rebased on revised #77

@rwjblue rwjblue merged commit 5cd1914 into ember-cli:master Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants