
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@ember/test-helpers
Advanced tools

A test-framework-agnostic set of helpers for testing Ember.js applications.
This library is best used by way of a test-framework-specific wrapper, such as ember-qunit or ember-mocha.
The exports of this library are intended to be utility functions that can be used to bring the standard Ember testing experience to any testing framework.
A quick summary of the exports from the ember-test-helpers module:
setApplication - This function is used to allow the rest of the setup
functions to build a valid container/registry which can be used to lookup
instances and factories from your application.setResolver - When setApplication has not been ran, this function is used to allow the other
functions build a valid container/registry that is able to look objects up
from your application (just as a running Ember application would).setContext - Invoked by the host testing framework to set the current testing context (generally
the this within a running test).getContext - Used to retrieve the current testing context.unsetContext - Used to ensure that all handles on the testing context are released (allowing GC).setupContext - Sets up a given testing context with owner, get, set, etc properties.teardownContext - Cleans up any objects created as part of the owner created in setupContext.setupRenderingContext - Sets up the provided context with the ability to render template
snippets by adding render, clearRender, etc.teardownRenderingContext - Cleans up any work done in a rendering test.settled - Returns a promise which will resolve when all async from AJAX, test waiters, and
scheduled timers have completed.validateErrorHandler - Used to ensure that the Ember.onerror error handler properly re-throws any errors during testing.git clone <repository-url> this repositorycd ember-test-helpersnpm installember servenpm test (Runs ember try:each to test your addon against multiple Ember versions)ember testember test --serverember buildFor more information on using ember-cli, visit https://ember-cli.com/.
Much of ember-test-helpers was extracted from the original ember-qunit,
which was written by Stefan Penner, Robert Jackson, and Ryan Florence.
Copyright 2015 Switchfly and contributors.
Dual-licensed under the Apache License, Version 2.0 and the MIT License.
FAQs
Helpers for testing Ember.js applications
The npm package @ember/test-helpers receives a total of 173,307 weekly downloads. As such, @ember/test-helpers popularity was classified as popular.
We found that @ember/test-helpers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.