diff --git a/packages/ember-auto-import/ts/tests/inserter-test.ts b/packages/ember-auto-import/ts/tests/inserter-test.ts index 38efcc1e..cdd61fb2 100644 --- a/packages/ember-auto-import/ts/tests/inserter-test.ts +++ b/packages/ember-auto-import/ts/tests/inserter-test.ts @@ -14,8 +14,22 @@ import { join } from 'path'; import { Inserter } from '../inserter'; import BundleConfig from '../bundle-config'; import { BuildResult, Bundler } from '../bundler'; +import Plugin from 'broccoli-plugin'; + const { module: Qmodule, test } = QUnit; +class NoopPlugin extends Plugin { + build(): Promise | void { + // noop + } +} + +function asInputNode(obj: any) { + const plugin = new NoopPlugin([]); + Object.assign(plugin, obj); + return plugin as Bundler; +} + Qmodule('inserter', function (hooks) { let builder: Builder; let upstream: string; @@ -28,7 +42,7 @@ Qmodule('inserter', function (hooks) { async function build() { let inserter = new Inserter( new UnwatchedDir(upstream), - { buildResult } as Bundler, + asInputNode({ buildResult }), bundleConfig, { publicAssetURL,