A test-framework-agnostic set of helpers for testing Ember.js applications
- Ember.js v4 or above
- Ember CLI v4 or above
- Node.js v16 or above
- TypeScript 4.7, 4.8, 4.9, 5.0, and 5.1
For ember-qunit v5 and above
yarn add --dev @ember/test-helpers
npm install --save-dev @ember/test-helpers
For ember-qunit v4 and below
If you are writing a regular Ember app or addon there is not much for you to do as ember-qunit (and ember-mocha) already include this package as a dependency. You only need to make sure that you are using a recent enough version of either one of these packages.
If you are working on
ember-mocha themselves you can
install this package like any other regular Ember addon.
This package exports several helper functions that can be used to improve the testing experience when developing Ember.js apps or addons.
These helper functions include DOM interaction helpers (
...), routing and rendering helpers (
render(), ...) and some
other things that make it easy to write good tests.
The full documentation can be found in the API reference.
git clone <repository-url>
ember try:eachto test your addon against multiple Ember versions)
ember test --server
Running the dummy application
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
ember-test-helpers was extracted from the original
which was written by Stefan Penner, Robert Jackson, and Ryan Florence.
Copyright and License
Copyright 2015 Switchfly and contributors.