UNPKG

@pgengler/ember-cli-mirage

Version:

A client-side server to help you build, test and demo your Ember app

18 lines (15 loc) 562 B
import { importSync, dependencySatisfies, isTesting } from '@embroider/macros'; /** Helper to get our rfc232/rfc268 test context object, or null if we're not in such a test. @hide */ export default function getRfc232TestContext() { // Support older versions of `ember-qunit` that don't have // `@ember/test-helpers` (and therefore cannot possibly be running an // rfc232/rfc268 test). if (dependencySatisfies('@ember/test-helpers', '*') && isTesting()) { let { getContext } = importSync('@ember/test-helpers'); return getContext(); } }