Gathering detailed insights and metrics for ember-test-helpers
Gathering detailed insights and metrics for ember-test-helpers
Gathering detailed insights and metrics for ember-test-helpers
Gathering detailed insights and metrics for ember-test-helpers
@ember/test-helpers
Helpers for testing Ember.js applications
@types/ember-test-helpers
TypeScript definitions for ember-test-helpers
ember-cli-blueprint-test-helpers
Blueprint test helpers for ember-cli. Mocks ember-cli for generate and destroy commands.
@types/ember__test-helpers
Stub TypeScript definitions entry for @ember/test-helpers, which provides its own types definitions
Test-framework-agnostic helpers for testing Ember.js applications
npm install ember-test-helpers
Typescript
Module System
Node Version
NPM Version
v5.2.2-@ember/test-helpers
Updated on May 10, 2025
v5.2.1-@ember/test-helpers
Updated on Apr 01, 2025
Release 2.9.6
Updated on Mar 28, 2025
Release 2.9.5
Updated on Mar 27, 2025
v5.2.0-@ember/test-helpers
Updated on Mar 26, 2025
v4.0.5-@ember/test-helpers
Updated on Jan 30, 2025
JavaScript (60.78%)
TypeScript (38.8%)
HTML (0.38%)
CSS (0.03%)
Handlebars (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
187 Stars
2,755 Commits
261 Forks
18 Watchers
35 Branches
113 Contributors
Updated on May 10, 2025
Latest Version
0.6.3
Package Id
ember-test-helpers@0.6.3
Size
21.60 kB
NPM Version
3.10.9
Node Version
7.1.0
Published on
Mar 04, 2017
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
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 TestModule
class is used to configure modules for unit testing
different aspects of your Ember application. This class can be extended to
create modules focused on particular types of unit tests.
TestModule
is intended to be used in conjunction with modules specific to
a test framework. For instance, you could create QUnit-compatible modules with
a method such as:
1function moduleFor(name, description, callbacks) { 2 let module = new TestModule(name, description, callbacks); 3 4 QUnit.module(module.name, { 5 beforeEach() { 6 return module.setup(); 7 }, 8 afterEach() { 9 return module.teardown(); 10 } 11 }); 12}
TestModule(name [, description [, callbacks]])
name
- the full name of the test subject as it is registered in a container
(e.g. 'controller:application', 'route:index', etc.).
description
(optional) - the description of the test module as it should be
displayed in test output. If omitted, defaults to name
.
callbacks
(optional) - an object that may include setup and teardown steps
as well as the other units needed by tests.
callbacks.resolver
(optional) - a Resolver instance to be used for the test
module. Takes precedence over the globally set Resolver.
TestModuleForComponent
extends TestModule
to allow unit testing of Ember
Components.
TestModuleForComponent(name [, description [, callbacks]])
name
- the short name of the component that you'd use in a template
(e.g. 'x-foo', 'color-picker', etc.).TestModuleForModel
extends TestModule
to allow unit testing of Ember Data
Models.
TestModuleForModel(name [, description [, callbacks]])
name
- the short name of the model that you'd use in store operations
(e.g. 'user', 'assignmentGroup', etc.).getContext
/ setContext
- access the context to be used in each test.
setResolver
- sets a Resolver globally which will be used to look up objects
from each test's container.
isolatedContainer
- creates a new isolated container for unit testing.
git clone <repository-url>
this repositorycd ember-test-helpers
npm install
ember serve
npm test
(Runs ember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For 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.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
Found 5/6 approved changesets -- score normalized to 8
Reason
6 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
19 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More