home
  • Blog
  • Home
  • Projects
    • Ember
    • EmberData
    • Ember CLI
2.18
  • Packages
    • @ember/application
    • @ember/array
    • @ember/component
    • @ember/controller
    • @ember/debug
    • @ember/engine
    • @ember/error
    • @ember/object
    • @ember/polyfills
    • @ember/routing
    • @ember/runloop
    • @ember/service
    • @ember/string
    • @ember/test
    • @ember/utils
    • ember-glimmer
    • jquery
  • Classes
    • Adapter
    • Application
    • ApplicationInstance
    • ApplicationInstance.BootOptions
    • ArrayProxy
    • Checkbox
    • Component
    • ComputedProperty
    • ContainerDebugAdapter
    • ContainerProxyMixin
    • Controller
    • CoreObject
    • DataAdapter
    • Ember.Debug
    • Ember.Logger
    • Ember.MutableEnumerable
    • Ember.Namespace
    • Ember.NativeArray
    • Ember.Templates.helpers
    • Ember.Test
    • Ember.Test.QUnitAdapter
    • EmberArray
    • EmberError
    • EmberObject
    • Engine
    • EngineInstance
    • Evented
    • GlobalsResolver
    • HashLocation
    • Helper
    • HistoryLocation
    • LinkComponent
    • Mixin
    • MutableArray
    • NoneLocation
    • ObjectProxy
    • Observable
    • PromiseProxyMixin
    • RSVP.EventTarget
    • RSVP.Promise
    • Route
    • Router
    • RouterService
    • Service
    • String
    • TextArea
    • TextField

Class Adapter public


Defined in: packages/ember-testing/lib/adapters/adapter.js:9
Module: @ember/test

The primary purpose of this class is to create hooks that can be implemented by an adapter for various test frameworks.


Methods

asyncEnd public

Module: @ember/test

Defined in packages/ember-testing/lib/adapters/adapter.js:28

This callback will be called whenever an async operation has completed.

asyncStart public

Module: @ember/test

Defined in packages/ember-testing/lib/adapters/adapter.js:17

This callback will be called whenever an async operation is about to start.

Override this to call your framework's methods that handle async operations.

exception (error) public

Module: @ember/test

Defined in packages/ember-testing/lib/adapters/adapter.js:36

error
String

The exception to be raised.

Override this method with your testing framework's false assertion. This function is called whenever an exception occurs causing the testing promise to fail.

QUnit example:

  exception: function(error) {
    ok(false, error);
  };
On this page


Methods

  • asyncEnd
  • asyncStart
  • exception
Team Sponsors Security Legal Branding Community Guidelines
Twitter GitHub Discord Mastodon

If you want help you can contact us by email, open an issue, or get realtime help by joining the Ember Discord.

© Copyright 2025 - Tilde Inc.
Ember.js is free, open source and always will be.


Ember is generously supported by
blue Created with Sketch.