Skip to content

Commit

Permalink
Remove @ember/test-helpers from peerDependencies and use ES import
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeAstapov committed Apr 22, 2022
1 parent d1b34b2 commit b48a0a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion addon/src/test-support/index.js
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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();
Expand Down

0 comments on commit b48a0a5

Please # to comment.