File tree 1 file changed +15
-1
lines changed
packages/ember-auto-import/ts/tests
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,22 @@ import { join } from 'path';
14
14
import { Inserter } from '../inserter' ;
15
15
import BundleConfig from '../bundle-config' ;
16
16
import { BuildResult , Bundler } from '../bundler' ;
17
+ import Plugin from 'broccoli-plugin' ;
18
+
17
19
const { module : Qmodule , test } = QUnit ;
18
20
21
+ class NoopPlugin extends Plugin {
22
+ build ( ) : Promise < void > | void {
23
+ // noop
24
+ }
25
+ }
26
+
27
+ function asInputNode ( obj : any ) {
28
+ const plugin = new NoopPlugin ( [ ] ) ;
29
+ Object . assign ( plugin , obj ) ;
30
+ return plugin as Bundler ;
31
+ }
32
+
19
33
Qmodule ( 'inserter' , function ( hooks ) {
20
34
let builder : Builder ;
21
35
let upstream : string ;
@@ -28,7 +42,7 @@ Qmodule('inserter', function (hooks) {
28
42
async function build ( ) {
29
43
let inserter = new Inserter (
30
44
new UnwatchedDir ( upstream ) ,
31
- { buildResult } as Bundler ,
45
+ asInputNode ( { buildResult } ) ,
32
46
bundleConfig ,
33
47
{
34
48
publicAssetURL,
You can’t perform that action at this time.
0 commit comments