Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@ember/test-helpers

emberjs452.2k(MIT OR Apache-2.0)5.0.0TypeScript support: included

Helpers for testing Ember.js applications

ember-addon

readme

@ember/test-helpers CI Build

A test-framework-agnostic set of helpers for testing Ember.js applications

Compatibility

  • Ember.js v4 or above
  • Ember CLI v4 or above
  • Node.js v16 or above
  • TypeScript 5.0, 5.1, 5.2, 5.3, 5.4, and 5.5

Installation

For ember-qunit v5 and above

pnpm

pnpm add --dev @ember/test-helpers

npm

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-qunit or ember-mocha themselves you can install this package like any other regular Ember addon.

Usage

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 (click(), fillIn(), ...), routing and rendering helpers (visit(), render(), ...) and some other things that make it easy to write good tests.

The full documentation can be found in the API reference.

Contributing

Installation

  • git clone https://github.com/emberjs/ember-test-helpers.git
  • cd ember-test-helpers
  • pnpm install

Running tests

  • cd test-app
  • Multiple ways of running the tests
    • pnpm test
    • ember serve + visit /tests in the browser
    • ember test
    • ember test --server

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

Attribution

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.

changelog

Changelog

Release (2025-01-17)

@ember/test-helpers 5.0.0 (major)

:boom: Breaking Change

  • @ember/test-helpers, test-app

:bug: Bug Fix

  • @ember/test-helpers, test-app

:house: Internal

Committers: 3

Release (2024-09-04)

@ember/test-helpers 4.0.4 (patch)

:bug: Bug Fix

:house: Internal

Committers: 1

Release (2024-09-03)

@ember/test-helpers 4.0.3 (patch)

:bug: Bug Fix

  • @ember/test-helpers, test-app, type-tests
    • #1486 Remove old code that existed for now unsupported ember-sources (2.4, etc) (@NullVoxPopuli)

:house: Internal

  • @ember/test-helpers, test-app, type-tests
    • #1486 Remove old code that existed for now unsupported ember-sources (2.4, etc) (@NullVoxPopuli)

Committers: 1

Release (2024-08-23)

@ember/test-helpers 4.0.2 (patch)

:bug: Bug Fix

Committers: 1

Release (2024-08-22)

@ember/test-helpers 4.0.1 (patch)

:bug: Bug Fix

  • @ember/test-helpers, test-app
    • #1482 Resolve Error: @ember/test-helpers is trying to import from @ember/-internals but that is not one of its explicit dependencies (@NullVoxPopuli)

:memo: Documentation

:house: Internal

Committers: 1

Release (2024-08-20)

@ember/test-helpers 4.0.0 (major)

:boom: Breaking Change

:rocket: Enhancement

  • @ember/test-helpers, test-app
  • @ember/test-helpers
    • #1472 Remove require usage, dropping support for automatic ember-data/setup-container inclusion (@NullVoxPopuli)

:house: Internal

  • @ember/test-helpers, test-app, type-tests
  • @ember/test-helpers
    • #1477 Add Docs-Generation to CI -- will error if docs get out of sync and provides actionable information towards resolution. (@NullVoxPopuli)
  • Other
  • test-app
  • @ember/test-helpers, test-app
  • @ember/test-helpers, type-tests

Committers: 1

Release (2024-07-23)

@ember/test-helpers 3.3.1 (patch)

:bug: Bug Fix

  • @ember/test-helpers
    • #1464 Use the right attribute - maxlength instead of maxLength (@shubham88fru)
    • #1449 this change makes it so strict package managers installing duplicate … (@void-mAlex)

:memo: Documentation

:house: Internal

Committers: 4

v3.3.0 (2024-02-12)

:rocket: Enhancement

Committers: 1

v3.2.1 (2023-11-19)

:bug: Bug Fix

Committers: 1

v3.2.0 (2023-06-30)

:rocket: Enhancement

  • #1389 Support @types, preview types, and stable types for Ember.js (@gitKrystan)

Committers: 1

v3.1.0 (2023-06-15)

:rocket: Enhancement

:bug: Bug Fix

:memo: Documentation

:house: Internal

Committers: 2

v3.0.3 (2023-06-09)

:bug: Bug Fix

:house: Internal

Committers: 3

v3.0.2 (2023-06-01)

:bug: Bug Fix

Committers: 1

v3.0.1 (2023-06-01)

v3.0.0 (2023-05-31)

:boom: Breaking Change

:rocket: Enhancement

:bug: Bug Fix

:memo: Documentation

:house: Internal

Committers: 16

v2.9.3 (2022-12-21)

:bug: Bug Fix

  • #1305 [backport] Avoid unnecessary dependencies on @glimmer types (@dfreeman)

Committers: 1

v2.9.2 (2022-12-21)

:bug: Bug Fix

Committers: 1

v2.9.1 (2022-12-16)

*Note: these were all back-ported from master since they could go out on 2.9. This will be the last 2.9 release unless there are critical bug fixes here!*

:bug: Bug Fix

  • Let ESLint have its way about docstring location (a8fac83)
  • DOC: API: add render helper examples (f476a20)
  • Tweak TS style for indexing multiple types (for getElement) (f01ad9f)
  • Use export type for RenderingTestContext (2dc5077)
  • Tweak TS style for indexing multiple types (3214483)
  • Address PR feedback (5e87a54)
  • DOC: API: add DOM query helper examples (83b7f5f)
  • Export type for Target (335019d)
  • Upgrade expect-type and fix issues the new version reveals (bae5e33)
  • Correctly handle special char keyCodes with Shift (d537923)
  • Add tab type test (64f40d5)
  • Generate documentation (939f29f)
  • Ensure types reflect optional-ness of tab options (95285cc)
  • Fix typesVersions config again (53fa899)
  • Clean up public-types after pack (b9dcbca)

v2.9.0 (2022-12-14)

:rocket: Enhancement

:bug: Bug Fix

:memo: Documentation

Committers: 5

v2.8.1 (2022-05-19)

:bug: Bug Fix

  • #1221 Fix issues with embroider-optimized scenarios. (@rwjblue)

Committers: 1

v2.8.0 (2022-05-17)

:rocket: Enhancement

:bug: Bug Fix

Committers: 2

v2.7.0 (2022-04-04)

:rocket: Enhancement

  • #1185 feat: add start and end hooks to the fireEvent helper (@shamrt)

Committers: 1

v2.6.2 (2022-04-04)

:bug: Bug Fix

  • #1173 Fix the way the pending requests module is used in settled.ts (@raycohen)

:memo: Documentation

:house: Internal

Committers: 4

v2.6.0 (2021-11-04)

:rocket: Enhancement

:bug: Bug Fix

  • #1155 Add registerHooks to new Tab helper (@NullVoxPopuli)
  • #1141 Avoid using Ember.assign (prevents deprecations on newer Ember versions) (@ef4)

:house: Internal

Committers: 3

v2.5.0 (2021-10-06)

:rocket: Enhancement

Committers: 3

v2.4.3 (2021-10-06)

:bug: Bug Fix

:house: Internal

Committers: 3

v2.4.2 (2021-08-23)

:bug: Bug Fix

  • #1110 Ensures CoreOutlet is passed the correct parameters (fixes ember-canary) (@stefanpenner)

Committers: 1

v2.4.1 (2021-08-18)

:house: Internal

Committers: 2

v2.4.0 (2021-08-09)

:rocket: Enhancement

:bug: Bug Fix

  • #1070 Fix an invalid keyCode mapping (@CvX)

:house: Internal

Committers: 4

v2.3.0 (2021-08-02)

:rocket: Enhancement

Committers: 1

v2.2.9 (2021-07-27)

:bug: Bug Fix

  • #1066 Correctly import deprecate from @ember/debug (@mydea)

:memo: Documentation

:house: Internal

Committers: 4

v2.2.8 (2021-06-15)

:bug: Bug Fix

Committers: 1

v2.2.7 (2021-06-15)

:bug: Bug Fix

  • #1047 Ensure jQuery.ajax pending request detection works with Ember 3.27 under Embroider (@stefanpenner)

:house: Internal

Committers: 3

v2.2.6 (2021-05-30)

:bug: Bug Fix

  • #1033 Ensure blur event fires on prior focused element even if click target is not focusable (@helgablazhkun)

Committers: 2

v2.2.5 (2021-03-20)

:bug: Bug Fix

  • #1015 Update @ember/test-waiters to avoid window.Ember deprecations (@rwjblue)
  • #1014 Update ember-cli-babel to avoid deprecations RE: window.Ember (@rwjblue)

:house: Internal

Committers: 1

v2.2.4 (2021-03-19)

:bug: Bug Fix

  • #1012 Fix deprecations with Ember 3.27+ (@rwjblue)
  • #1009 Update dependencies to latest (fix some Ember 3.27 deprecations) (@rwjblue)

Committers: 2

v2.2.3 (2021-02-23)

:bug: Bug Fix

Committers: 1

v2.2.2 (2021-02-23)

:bug: Bug Fix

Committers: 1

v2.2.1 (2021-02-18)

:bug: Bug Fix

Committers: 1

v2.2.0 (2021-02-13)

:rocket: Enhancement

:house: Internal

  • #988 Bumping version of @ember/test-waiters to avoid issues in Embroider builds (@thoov)
  • #949 Polyfilled test selector optimizations (@izelnakri)

Committers: 4

v2.1.4 (2020-12-18)

:bug: Bug Fix

  • #965 Ensure focus issues correct event.relatedTarget for dispatched blur events (#964) (@drewlee)

Committers: 1

v2.1.3 (2020-12-16)

:bug: Bug Fix

  • #966 Update ember-auto-import to 1.10.0 at a minimum. (@rwjblue)
  • #963 Add treeType annotation to hint correct bundle to ember-auto-import (@rwjblue)

Committers: 2

v2.1.2 (2020-12-10)

:bug: Bug Fix

  • #946 Fixes maxlength conditional check for textarea & constrained input types (@drewlee)

:memo: Documentation

Committers: 3

v2.1.1 (2020-12-04)

:bug: Bug Fix

  • #958 Ensure @ember/test-helpers promise based helpers never create a run loop for resolving the promise. (@rwjblue)

:memo: Documentation

  • #957 Update readme in light of changes in ember-qunit v5 (@nlfurniss)

:house: Internal

Committers: 3

v2.1.0 (2020-11-16)

:rocket: Enhancement

  • #943 Allow click, doubleClick, and triggerEvent to trigger events on window. (@scalvert)

Committers: 2

v2.0.1 (2020-10-29)

:bug: Bug Fix

  • #927 Fixes interop issue between native promises and RSVP promises in test helper hooks (@drewlee)
  • #923 Make it possible to call triggerEvent(fileInput, 'change', { files }) twice with the same files (@sdahlbac)

:memo: Documentation

  • #926 Add scrollTo and select to API documentation. (@rwjblue)

:house: Internal

Committers: 3

v2.0.0 (2020-10-20)

:boom: Breaking Change

:house: Internal

  • #913 Updating hooks label type to provide hint to built-in values (@scalvert)
  • #914 Migrate to using @ember/destroyable for teardown. (@rwjblue)
  • #915 Remove usage of ember-cli-version-checker's old .forEmber API (@rwjblue)
  • #909 Update automated release setup. (@rwjblue)
  • #910 Move #ember-testing-container into #qunit-fixture element. (@rwjblue)
  • #904 Add ember-lts-3.20 CI scenario. (@rwjblue)
  • #878 Adding _registerHook / _runHooks functionality allow adding work start/end of test helpers (@scalvert)
  • #851 Fix internal types for require's has method (@rwjblue)
  • #849 Migrate from requirejs.entries to has. (@rwjblue)
  • #833 Tweak automated release setup. (@rwjblue)
  • #832 Remove ember-debug-handlers-polyfill. (@rwjblue)
  • #831 Refactor ember-try scenarios. (@rwjblue)
  • #830 Increase browser start timeout. (@rwjblue)
  • #824 Migrate CI to GitHub Actions. (@rwjblue)
  • #821 Remove ember-cli-htmlbars-inline-precompile. (@rwjblue)
  • #819 Move buildRegistry into @ember/test-helpers/-internals. (@rwjblue)
  • #820 Remove ember-assign-polyfill dependency. (@rwjblue)
  • #798 CI: Add test scenarios for Ember 3.8, 3.12 and 3.16 (@Turbo87)

:rocket: Enhancement

:bug: Bug Fix

  • #924 Ensure setting an empty value in FileInput clears the selected files (@nag5000)
  • #879 Ensure waitUntil stops recursing when the callback throws an error (@scalvert)
  • #872 Ensure triggerKeyEvent works properly with IE11 (@lyubarskiy)
  • #747 Error when fillIn/ typeIn attempt to enter a value longer than maxlength (@jaydgruber)
  • #685 Default click and doubleClick to be left button clicks. (@evanfarina)
  • #610 Only require ember-cli-typescript while developing (@davewasmer)

:memo: Documentation

Committers: 14

v2.0.0-beta.6 (2020-08-27)

:boom: Breaking Change

  • #917 Remove teardownRenderingContext and teardownApplicationContext (@rwjblue)

Committers: 1

v2.0.0-beta.5 (2020-08-27)

:house: Internal

  • #913 Updating hooks label type to provide hint to built-in values (@scalvert)
  • #914 Migrate to using @ember/destroyable for teardown. (@rwjblue)
  • #915 Remove usage of ember-cli-version-checker's old .forEmber API (@rwjblue)

Committers: 2

v2.0.0-beta.4 (2020-08-17)

:boom: Breaking Change

  • #911 Remove manual DOM cleanup code after each test. (@rwjblue)

:house: Internal

  • #909 Update automated release setup. (@rwjblue)
  • #910 Move #ember-testing-container into #qunit-fixture element. (@rwjblue)

Committers: 1

v2.0.0-beta.3 (2020-08-17)

:boom: Breaking Change

:rocket: Enhancement

:bug: Bug Fix

  • #879 Ensure waitUntil stops recursing when the callback throws an error (@scalvert)
  • #872 Ensure triggerKeyEvent works properly with IE11 (@lyubarskiy)

:house: Internal

  • #904 Add ember-lts-3.20 CI scenario. (@rwjblue)
  • #878 Adding _registerHook / _runHooks functionality allow adding work start/end of test helpers (@scalvert)
  • #851 Fix internal types for require's has method (@rwjblue)

Committers: 6

v2.0.0-beta.2 (2020-05-06)

:house: Internal

Committers: 1

v2.0.0-beta.1 (2020-05-05)

:boom: Breaking Change

:rocket: Enhancement

:bug: Bug Fix

  • #747 Error when fillIn/ typeIn attempt to enter a value longer than maxlength (@jaydgruber)
  • #685 Default click and doubleClick to be left button clicks. (@evanfarina)
  • #610 Only require ember-cli-typescript while developing (@davewasmer)

:memo: Documentation

:house: Internal

Committers: 10

v1.7.1 (2019-10-25)

:bug: Bug Fix

Committers: 1

v1.7.0 (2019-10-22)

:rocket: Enhancement

:bug: Bug Fix

  • #674 Ensure that triggerEvent can simulate a file input change event with an empty FileList (@ggayowsky)

:house: Internal

  • #725 Pin engine.io subdependency to avoid issues on Node 6. (@rwjblue)
  • #723 task(config): Removes --disable-gpu flag (@scalvert)

Committers: 4

v1.6.1 (2019-08-30)

:bug: Bug Fix

  • #677 Fix legacy rendering tests (e.g. moduleForComponent) when used with Ember 3.13+ (@buschtoens)

Committers: 2

v1.6.0 (2019-06-17)

:memo: Documentation

  • #663 Update documentation for triggerEvent (@qpowell)
  • #598 Fix file upload example in triggerEvent documentation. (@jherdman)

:house: Internal

  • #652 chore(test): Fixes CI when testing floating dependencies (@scalvert)

Committers: 4

v1.6.0-beta.2 (2019-05-14)

:house: Internal

  • #649 chore(deps): Upgrades ember-test-waiters to latest version (0.9.1) (@scalvert)
  • #636 refactor(DebugInfo): Changes DebugInfo constructor signature to POJO (@scalvert)

Committers: 1

v1.6.0-beta.1 (2019-05-02)

:rocket: Enhancement

:bug: Bug Fix

:memo: Documentation

Committers: 3

v1.5.0 (2019-02-22)

:rocket: Enhancement

Committers: 1

v1.4.0 (2019-02-19)

:rocket: Enhancement

  • #554 Moving test isolation validation primatives into @ember/test-helpers (@scalvert)

:memo: Documentation

  • #553 Test and document specifying options to click (@efx)

:house: Internal

Committers: 3

v1.3.2 (2019-02-01)

:bug: Bug Fix

  • #548 Refactors setupOnerror to be a pure setup/teardown approach (@scalvert)

Committers: 1

v1.3.1 (2019-01-28)

:bug: Bug Fix

  • #546 Avoid importing jQuery, depend on self.jQuery instead. (@rwjblue)

Committers: 1

v1.3.0 (2019-01-27)

:rocket: Enhancement

Committers: 1

v1.2.1 (2019-01-26)

:bug: Bug Fix

Committers: 3

v1.2.0 (2019-01-26)

:rocket: Enhancement

  • #540 Adds setupOnerror utility to allow patching Ember.onerror in individual tests (@scalvert)
  • #505 Update dependency on ember-cli-htmlbars-inline-precompile to ^2.1.0. (@rwjblue)

:bug: Bug Fix

:memo: Documentation

Committers: 4

v1.1.0 (2018-12-10)

:rocket: Enhancement

  • #498 Add ability to opt-out of automatic settledness waiting in teardown. (@rwjblue)

:bug: Bug Fix

  • #497 Only customize RSVP's async for Ember older than 1.7. (@rwjblue)
  • #481 Allow ember-cli-htmlbars-inline-precompile 2.x and 1.x (@mydea)

:house: Internal

Committers: 4

v1.0.1 (2018-11-07)

:bug: Bug Fix

  • #458 Ensure the world is settled after await settled() (@wagenet)

:house: Internal

Committers: 3

v1.0.0 (2018-10-29)

:boom: Breaking Change

:rocket: Enhancement

  • #370 Allow internal nextTick utility to use microtasks when possible. (@rwjblue)
  • #428 Standardize params for calling triggerEvent on file input (@mattdonnelly)

:bug: Bug Fix

  • #429 Ensure view is set by default on generated mouse events (@mydea)

Committers: 4

v0.7.27 (2018-10-16)

:bug: Bug Fix

  • #429 Ensure view is set by default on generated mouse events. (@mydea)

Committers: 1

v0.7.26 (2018-10-02)

:rocket: Enhancement

:bug: Bug Fix

  • #413 Clear requests array when tearing down. (@hjdivad)
  • #404 Fix getRootElement failing when Application.rootElement is an element. (@apellerano-pw)

:memo: Documentation

:house: Internal

  • #412 Work around downstream dependencies dropping Node 4 without major bump. (@rwjblue)

Committers: 15

v0.7.25 (2018-06-10)

:boom: Breaking Change

  • #384 Prevent click from triggering events on disabled form elements. (@kellyselden)

:rocket: Enhancement

:bug: Bug Fix

  • #384 Prevent click from triggering events on disabled form elements. (@kellyselden)

:house: Internal

Committers: 3

v0.7.24 (2018-05-18)

:house: Internal

  • #376 auto-dist-tag: Use Node 4 compatible release. (@Turbo87)

Committers: 1

v0.7.23 (2018-05-18)

:bug: Bug Fix

  • #374 Change descriptors to allow properties to be enumerated and configured. (@jimenglish81)

Committers: 1

v0.7.22 (2018-04-21)

:rocket: Enhancement

  • #361 Fix KeyboardEvent#key and allow triggerKeyEvent to receive keys instead of keycodes. (@cibernox)
  • #356 add waitFor msg. (@snewcomer)

:bug: Bug Fix

  • #366 Fix issues with Ember 3.2+ and legacy acceptance tests.. (@cibernox)

Committers: 2

v0.7.21 (2018-04-13)

:rocket: Enhancement

  • #358 Add context argument assertions to the find and findAll helpers. (@Turbo87)
  • #349 Protect context properties and methods from overwriting. (@Turbo87)
  • #346 Allow for custom error message in waitUntil helper. (@BitBrit)

:memo: Documentation

  • #348 wait-for helper's count value is null by default. (@sly7-7)

Committers: 3

v0.7.20 (2018-03-19)

:bug: Bug Fix

  • Fix invalid publish artifact (missing directory contents).

Committers: 4

  • Robert Jackson

v0.7.19 (2018-03-19)

:rocket: Enhancement

:bug: Bug Fix

:memo: Documentation

:house: Internal

Committers: 4

v0.7.18 (2018-02-13)

:bug: Bug Fix

:house: Internal

  • #320 Lock down documentation to 5.3.5 to avoid Node 4 issues.. (@rwjblue)

Committers: 1

v0.7.17 (2018-02-10)

:rocket: Enhancement

  • #305 Support testing without an application template wrapper. (@cibernox)

:bug: Bug Fix

:house: Internal

Committers: 2

v0.7.16 (2018-02-01)

:rocket: Enhancement

Committers: 1

v0.7.15 (2018-01-31)

:rocket: Enhancement

Committers: 1

v0.7.14 (2018-01-26)

:bug: Bug Fix

:memo: Documentation

:house: Internal

Committers: 5

v0.7.13 (2018-01-02)

:bug: Bug Fix

  • #297 Ensure templates are precompiled properly on ember-cli prior to 2.12. (@rwjblue)

:house: Internal

  • #296 Clean up and simplify setupRenderingContext. (@rwjblue)

Committers: 1

v0.7.12 (2017-12-31)

:rocket: Enhancement

  • #295 Use "real" rootElement for DOM interaction helpers. (@rwjblue)
  • #292 Refactor settled to leverage waitUntil. (@rwjblue)

:memo: Documentation

:house: Internal

Committers: 1

v0.7.11 (2017-12-27)

:memo: Documentation

Committers: 1

v0.7.10 (2017-12-20)

:rocket: Enhancement

  • #282 Refactor setupRenderingContext so that element is stable after setup. (@rwjblue)

:house: Internal

Committers: 1

v0.7.9 (2017-12-16)

:rocket: Enhancement

Committers: 1

v0.7.8 (2017-12-15)

:bug: Bug Fix

  • #276 Fix issues with IE11. All tests now passing on IE11, Chrome, FireFox, Edge, and Safari. 🎉 (@cibernox)

Committers: 1

v0.7.7 (2017-12-15)

:bug: Bug Fix

  • #275 Split cleanup into two buckets. Ensure tests can be ran on IE11. (@rwjblue)

:house: Internal

  • #274 Ensure vendor tree is transpiled when developing addon.. (@rwjblue)

Committers: 1

v0.7.6 (2017-12-15)

:bug: Bug Fix

:house: Internal

Committers: 2

v0.7.5 (2017-12-15)

:rocket: Enhancement

:bug: Bug Fix

  • #264 Wait for pending AJAX in acceptance tests. (@rwjblue)

:house: Internal

  • #269 Use nextTick and nextTickPromise throughout codebase. (@rwjblue)

Committers: 2

v0.7.4 (2017-12-13)

:rocket: Enhancement

  • #262 settled: Ramp up timeout values for isSettled() check. (@Turbo87)

:bug: Bug Fix

  • #263 Refactor settled to avoid triggering a new run-loop.. (@rwjblue)

:house: Internal

  • #261 Cleanup settle() integration tests. (@Turbo87)
  • #257 Run yarn lint and yarn test from the same job in first stage.. (@rwjblue)

Committers: 2

v0.7.3 (2017-12-05)

Full Changelog

Implemented enhancements:

  • Refactor isSettled to allow better insight into current state. #251 (rwjblue)
  • Expose isSettled utility function. #248 (rwjblue)

Fixed bugs:

Closed issues:

  • Remove ember-beta from allowed failures. #249
  • moduleForModel doesn't play nicely with application serializer. #165
  • Unit testing components with new attrs hash #63
  • Support non ember-data models #29
  • Generated controller test fails to lookup another controller factory (through needs) #8
  • Unit test for model requires inclusion of any other "referenced" model into needs. #6

Merged pull requests:

v0.7.2 (2017-11-30)

Full Changelog

Implemented enhancements:

  • Implement validateErrorHandler utility. #247 (rwjblue)

Closed issues:

  • Leaking states between tests (because of acceptance tests) #243
  • Allowing rejected promises in integration tests #197

v0.7.1 (2017-11-11)

Full Changelog

Implemented enhancements:

  • Automatically set resolver when setApplication is called. #242 (rwjblue)

v0.7.0 (2017-11-11)

Full Changelog

Implemented enhancements:

  • Rename to @ember/test-helpers #240
  • Rename to @ember/test-helpers. #241 (rwjblue)

v0.7.0-beta.11 (2017-11-10)

Full Changelog

Implemented enhancements:

  • Use Application.buildInstance if possible to create owner for use in tests. #234

Merged pull requests:

v0.7.0-beta.10 (2017-11-05)

Full Changelog

Implemented enhancements:

  • Make setupContext / teardownContext async #235

Merged pull requests:

  • Make setup and teardown of new API async. #236 (rwjblue)

v0.7.0-beta.9 (2017-11-05)

Full Changelog

Implemented enhancements:

  • Add pauseTest and resumeTest functionality. #233 (rwjblue)

Fixed bugs:

  • Broken tests in v0.7.0-beta.8 #231

Closed issues:

  • this.on() no longer supported in rendering tests? #232

v0.7.0-beta.8 (2017-10-20)

Full Changelog

Fixed bugs:

  • New setupRenderingTest seems to recreate the \#ember-testing-container for every test #228
  • Ensure ember-testing-container is reset properly. #229 (rwjblue)
  • Set Ember.testing only while actually running a test. #227 (rwjblue)

Closed issues:

  • TypeError: Cannot read property 'resolveRegistration' of undefined #230

v0.7.0-beta.7 (2017-10-17)

Full Changelog

Fixed bugs:

  • Ensure testing elements are properly reset/cleared. #226 (rwjblue)

v0.7.0-beta.6 (2017-10-17)

Full Changelog

Implemented enhancements:

Merged pull requests:

  • Update README for new API iteration. #225 (rwjblue)
  • Continue to flesh out more tests for new API's. #224 (rwjblue)
  • Move setContext into setupContext. #221 (rwjblue)

v0.7.0-beta.5 (2017-10-16)

Full Changelog

Implemented enhancements:

  • Expose element in component integration tests #184
  • Deprecate this.container and this.registry when using Ember 2.3.0. #120
  • Way to use extended EventDispatcher #20
  • Expose test helpers for component unit tests #3
  • Basic implementation for new testing API. #220 (rwjblue)

Fixed bugs:

  • Tests fail after upgrading to 0.5.17 - unable to find custom store #130
  • Document "integration: true" and "needs" #55

Closed issues:

  • Simplify support matrix. #206
  • contextualizeCallbacks prevents custom test instance helpers #204
  • 0.6.3 is breaking existing tests #203
  • initializers affect component integration tests if there is an acceptance test #146
  • Service injection fails in integration tests #109
  • Integration test with router injected into component #103
  • Failing test suite under 0.5.9 #97
  • Inject integration test helpers into component integration tests. #67
  • add-ons unit tests fail to retrieve custom factories #54
  • View-rendering with {{outlet}} in views template fails #36
  • If ED is being used and integration:true then I should be able to access the store #31
  • Working with new Container/Registry Implementation #7

Merged pull requests:

  • Use yarn instead of npm #219 (Turbo87)
  • Reorganize repo internals to prepare for RFC 232 implementation. #218 (rwjblue)

v0.7.0-beta.4 (2017-10-10)

Full Changelog

Closed issues:

  • Release via TravisCI #214

Merged pull requests:

v0.7.0-beta.3 (2017-10-08)

Full Changelog

Closed issues:

  • Convert to Ember addon #210

v0.7.0-beta.2 (2017-10-07)

Full Changelog

Implemented enhancements:

  • Autoregister event dispatcher in unit tests #205 (cibernox)

v0.7.0-beta.1 (2017-10-07)

Full Changelog

Implemented enhancements:

  • Migrate to an addon. #213 (rwjblue)
  • Ensure RSVP promises do not need manual Ember.run wrapping. #201 (rwjblue)
  • Updates to ensure ember-data from npm works properly. #200 (rwjblue)

Closed issues:

  • Document resolver option for modules #208

Merged pull requests:

v0.6.3 (2017-03-04)

Full Changelog

Fixed bugs:

  • Import require (avoid using global require). #198 (rwjblue)

v0.6.2 (2017-02-14)

Full Changelog

Fixed bugs:

  • Deprecation Warning thrown Even when needs:\[\] is passed #195

Merged pull requests:

  • Deprecation Warning thrown with needs:\[\] #196 (canufeel)

v0.6.1 (2017-01-24)

Full Changelog

Implemented enhancements:

  • Ember 2.12: Use factoryFor instead of lookupFactory, if available #194 (bwbuchanan)

Closed issues:

  • Release v0.6.0 #192
  • Integration component test issues after v0.5.31 #176

v0.6.0 (2016-12-21)

Full Changelog

Implemented enhancements:

  • JSHint not catching missing semicolon's aka. replace JSHint with ESLint #70
  • Replace JSHint with ESLint #190 (Turbo87)

Closed issues:

  • Use ESLint instead of JSHint #189
  • Update Ember CLI #185

Merged pull requests:

v0.6.0-beta.1 (2016-11-27)

Full Changelog

Implemented enhancements:

  • Publish to npm #58

Closed issues:

  • test-module-for-integration.js #182

Merged pull requests:

v0.5.34 (2016-10-03)

Full Changelog

Closed issues:

  • Reset test elements instead of emptying them #178
  • Regression with v0.5.26 #161

Merged pull requests:

  • Reset ember-testing div to initial state on teardown #180 (trentmwillis)
  • Fix the build (skipping a willDestroyElement test) for canary builds. #179 (rwjblue)

v0.5.33 (2016-08-18)

Full Changelog

Closed issues:

  • Ability to set Resolver per-module #173
  • Callback context is inconsistent #133

Merged pull requests:

v0.5.32 (2016-08-16)

Full Changelog

Merged pull requests:

  • Allow test frameworks to set context to use. #175 (rwjblue)

v0.5.31 (2016-08-03)

Full Changelog

Merged pull requests:

  • Enable usage when jQuery is not present. #172 (rwjblue)
  • Avoid duplication between test-module-for-component and test-module-for-integration. #171 (rwjblue)

v0.5.30 (2016-08-01)

Full Changelog

Merged pull requests:

v0.5.29 (2016-08-01)

Full Changelog

Merged pull requests:

  • Start working on making the alpha pass. #168 (rwjblue)

v0.5.28 (2016-07-30)

Full Changelog

Merged pull requests:

  • Call Ember.ApplicationInstance.setupRegistry if present. #167 (rwjblue)
  • Updating Package Versions within current range #166 (elwayman02)

v0.5.27 (2016-06-20)

Full Changelog

Closed issues:

  • Attempting to inject an unknown injection: router:main when running unit or integration tests for controllers or routes. #151

Merged pull requests:

  • Fix the module-for-integration tests on Ember canary. #163 (rwjblue)
  • export unsetContext from the main module #162 (CodeOfficer)

v0.5.26 (2016-06-07)

Full Changelog

Closed issues:

  • Minor version 0.5.24 -> 0.5.25 broke my tests #159

Merged pull requests:

  • Fix regression related to DOM structure. #160 (rwjblue)

v0.5.25 (2016-06-06)

Full Changelog

Closed issues:

  • can't test customEvents #75

Merged pull requests:

  • Refactor moduleForComponent rendering to use outlet system. #158 (rwjblue)

v0.5.24 (2016-05-25)

Full Changelog

Closed issues:

  • How should mutliple render calls in one test behave? #111

Merged pull requests:

  • Ensure prior render is cleared when calling this.render. #155 (rwjblue)

v0.5.23 (2016-05-05)

Full Changelog

Closed issues:

  • Component context should be cleaned up between integration tests? #149
  • Check Ember.Test.waiters in wait helper #139

Merged pull requests:

v0.5.22 (2016-01-31)

Full Changelog

Merged pull requests:

  • Test ember-data-2.3 in addon mode. #148 (rwjblue)
  • Add clearRender method to allow testing of willDestroyElement. #147 (rwjblue)
  • Add moduleForIntegration #144 (matteddy)

v0.5.21 (2016-01-24)

Full Changelog

Merged pull requests:

  • Avoid using DS.JSONAPIAdapter if module is present. #143 (rwjblue)
  • Load the JSONAPIAdapter out of require instead of assuming its on a D… #142 (bmac)
  • Add support for Ember Test registered waiters to wait helper #141 (adamjmcgrath)

v0.5.20 (2016-01-23)

Full Changelog

Closed issues:

  • Global DS with Ember Data 2.3 #140

Merged pull requests:

  • Make build-registry work correctly when ember-data addon is used #138 (pangratz)
  • Change callback context to deprecate test module properties #136 (trentmwillis)
  • Add moduleForAcceptance #129 (matteddy)

v0.5.19 (2015-12-12)

Full Changelog

v0.5.18 (2015-12-12)

Full Changelog

Closed issues:

  • Return passed value from set and setProperties on integration tests #131

Merged pull requests:

v0.5.17 (2015-12-07)

Full Changelog

Closed issues:

  • Tests fail for latest beta/canary #126
  • Can no longer override registry in acceptance tests #124

Merged pull requests:

  • Fix registry resolver for isolated container @2.3+ #127 (nickiaconis)
  • Restrict integration: 'legacy' to component tests. #122 (rwjblue)
  • Add support for integration: 'legacy' #121 (rwjblue)

v0.5.16 (2015-11-10)

Full Changelog

Merged pull requests:

  • Use newly exposed mixins to create owner. #119 (rwjblue)

v0.5.15 (2015-11-10)

Full Changelog

Closed issues:

  • Events are fired twice for onxxxx type of handlers #116
  • Injecting services for component integration tests doesn't seem to work #114

Merged pull requests:

v0.5.14 (2015-10-21)

Full Changelog

Closed issues:

  • Implicit service injection fails in unit tests for dasherized names #108

Merged pull requests:

  • Fix issues with normalization in primary (non-fallback) registry. #113 (rwjblue)

v0.5.13 (2015-10-20)

Full Changelog

Closed issues:

  • TestModuleFor{App,Acceptance} proposal #94

Merged pull requests:

v0.5.12 (2015-10-02)

Full Changelog

Merged pull requests:

v0.5.11 (2015-10-01)

Full Changelog

Merged pull requests:

  • Add public API for injection & registration #105 (ef4)
  • Add id and until to deprecations. #102 (rwjblue)

v0.5.10 (2015-09-13)

Full Changelog

Closed issues:

  • [CANARY] Test suite fails against ember-canary 2.2.0 #99
  • No way to call component.didInsertElement() in component integration test #84

Merged pull requests:

  • Move action handling from module to context #101 (ef4)
  • Do not register a router service for Ember <1.13 #100 (mixonic)
  • Fix typo in thrown error #98 (HeroicEric)

v0.5.9 (2015-08-20)

Full Changelog

Merged pull requests:

v0.5.8 (2015-07-30)

Full Changelog

Closed issues:

  • Recent view registry change breaks tests #91
  • Deprecation message You tried to look up 'store:main', but this has been deprecated in favor of 'service:store' #65
  • Deprecation message DS.FixtureAdapter has been deprecated #64

Merged pull requests:

  • Ensure view-registry is injected for unit tested components. #92 (rwjblue)

v0.5.7 (2015-07-28)

Full Changelog

Merged pull requests:

  • Consistently use the new view registry #90 (ef4)

v0.5.6 (2015-07-24)

Full Changelog

Merged pull requests:

  • Add support for closure actions in component integration test #89 (martndemus)
  • Remove dependencies that are actually dev dependencies #88 (chadhietala)

v0.5.5 (2015-07-23)

Full Changelog

Closed issues:

  • Angle bracket components error when resolving #77

Merged pull requests:

v0.5.4 (2015-07-21)

Full Changelog

Merged pull requests:

v0.5.3 (2015-07-21)

Full Changelog

Closed issues:

  • "Render node exists without concomitant env" in 1.13.4 #76

Merged pull requests:

  • Only override container methods if present. #85 (rwjblue)

v0.5.2 (2015-07-20)

Full Changelog

Closed issues:

  • Does not work with Ember 2.0.0 beta 3 #80
  • Component integration tests used deprecated Ember.View #59

Merged pull requests:

  • Prevent errors when Ember.View / Ember._MetamorphView are undefined. #79 (rwjblue)
  • allow getProperties and setProperties for component integration tests #68 (CodeOfficer)

v0.5.1 (2015-07-06)

Full Changelog

Closed issues:

  • remove dependency on klassy, prefer raw JS or core-object #56
  • Accessing store and other services from #50
  • this.subject() throws error in moduleForModel if { integration: true } #46
  • TestModuleForComponent, integration: true, and {{link-to}} incompatible #41

Merged pull requests:

  • Update test-module-for-model.js #74 (quaertym)
  • Guard against exceptions in the setup steps. #73 (winding-lines)
  • Ember.keys is deprecated in favor of Object.keys #71 (jpadilla)
  • punctual punctuation #69 (CodeOfficer)
  • Add a test for {{component}} helper #62 (ef4)
  • Don't replace Ember's internal view:toplevel #61 (ef4)
  • Compatibility with Ember 1.13+ #60 (ef4)

v0.5.0 (2015-05-18)

Full Changelog

Merged pull requests:

  • Remove isolatedContainer and use Ember.Application.buildRegistry. #49 (rwjblue)

v0.4.6 (2015-05-18)

Full Changelog

Closed issues:

  • moduleForComponent accepts 3 or 1 argument, should also accept 2 #52
  • Feature request: support for block-params #40
  • Proposal: switching to template-driven component integration tests #25

Merged pull requests:

  • Ensure moduleForComponent with description works. #53 (rwjblue)

v0.4.5 (2015-05-14)

Full Changelog

Closed issues:

  • Needs no longer optional in v0.4.4? Unit tests deprecated? #47
  • New factories in isolatedContainer for Glimmer #43

Merged pull requests:

  • Allow missing arguments for moduleForComponent. #48 (rwjblue)
  • Add javascript syntax highlighting to README example #45 (HeroicEric)

v0.4.4 (2015-05-06)

Full Changelog

Merged pull requests:

  • Add container items required for Glimmer. #44 (rwjblue)
  • Delegate to DS._setupContainer when available to register service:store #39 (bmac)
  • Support component integration tests #38 (ef4)
  • Add automated testing against many Ember versions. #35 (rwjblue)

v0.4.3 (2015-04-04)

Full Changelog

Merged pull requests:

  • Use container to register custom DS keys. #34 (dgeb)

v0.4.2 (2015-04-04)

Full Changelog

Closed issues:

  • isolated-container depends on private view #30

Merged pull requests:

  • Register some built in Ember Data objects if ED exists on the page. #33 (bmac)
  • Asynchronous module hooks #32 (ef4)

v0.4.1 (2015-03-24)

Full Changelog

Merged pull requests:

  • Ensure moduleForModel uses the correct store for subject. #28 (rwjblue)

v0.4.0 (2015-03-17)

Full Changelog

Merged pull requests:

  • [breaking] Remove view.$\(\) call in render\(\) of module for component #27 (bantic)

v0.3.6 (2015-03-12)

Full Changelog

Merged pull requests:

  • Move integration container logic to TestModule #24 (nikz)

v0.3.5 (2015-03-11)

Full Changelog

Closed issues:

  • setup and teardown are not passing original arguments from frameworks #22

Merged pull requests:

  • Set registry.normalizeFullName to resolver.normalize. #23 (dgeb)
  • Adding standalone integration test support #21 (ef4)

v0.3.4 (2015-02-22)

Full Changelog

Merged pull requests:

v0.3.3 (2015-02-19)

Full Changelog

Merged pull requests:

v0.3.2 (2015-02-10)

Full Changelog

Merged pull requests:

  • Expose registry methods from isolatedContainer without deprecations. #15 (dgeb)
  • Ensure callbacks are called in the test module's context. #14 (dgeb)

v0.3.1 (2015-02-08)

Full Changelog

Merged pull requests:

  • Upgrade ember to 1.10.0 and remove handlebars. #13 (dgeb)

v0.3.0 (2015-01-31)

Full Changelog

Merged pull requests:

  • Ensure that setup callback is invoked with the correct context. #12 (rwjblue)
  • Use ember-cli for easier building. #11 (rwjblue)

v0.2.0 (2015-01-22)

Full Changelog

v0.1.0 (2015-01-22)

Full Changelog

Merged pull requests:

v0.0.7 (2014-11-19)

Full Changelog

Merged pull requests:

  • The isolated container exposes Ember's controllers. #4 (cyril-sf)
  • Make sure container and resolver normalize the same way #2 (marcoow)

v0.0.6 (2014-10-20)

Full Changelog

v0.0.5 (2014-10-14)

Full Changelog

v0.0.4 (2014-10-14)

Full Changelog

v0.0.3 (2014-10-07)

Full Changelog

Closed issues:

  • Configure testem for CI testing #1

v0.0.2 (2014-10-02)

Full Changelog

v0.0.1 (2014-05-03)