diff --git a/addon/package.json b/addon/package.json index be8d34741..491beab22 100644 --- a/addon/package.json +++ b/addon/package.json @@ -78,14 +78,6 @@ "tslib": "^2.4.0", "typescript": "^4.6.3" }, - "peerDependencies": { - "@ember/test-helpers": "^2.6.0" - }, - "peerDependenciesMeta": { - "@ember/test-helpers": { - "optional": true - } - }, "engines": { "node": "12.* || 14.* || >= 16" }, diff --git a/addon/src/test-support/index.js b/addon/src/test-support/index.js index 8227d0b0e..fae014dd7 100644 --- a/addon/src/test-support/index.js +++ b/addon/src/test-support/index.js @@ -1,5 +1,6 @@ import { importSync } from '@embroider/macros'; import { run } from '@ember/runloop'; +import { getContext } from '@ember/test-helpers'; import { Color } from '../color'; import { relativeBounds } from '../-private/bounds'; import { cumulativeTransform } from '../-private/transform'; @@ -21,7 +22,6 @@ export { Move } from '../motions/move'; export function animationsSettled() { let idle; - let { getContext } = importSync('@ember/test-helpers'); let { owner } = getContext(); run(() => { idle = owner.lookup('service:-ea-motion').get('waitUntilIdle').perform();