Skip to content

Commit

Permalink
fix(core): pass mock options to vm
Browse files Browse the repository at this point in the history
  • Loading branch information
Igmat committed Oct 7, 2018
1 parent d58576a commit b114f69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/baset-core/src/testGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface ITestGroupOptions {
resolvers: string[];
imports: string[];
isolateContext: boolean;
mocks: IDictionary<string>;
}

export class TestGroup {
Expand Down Expand Up @@ -207,6 +208,7 @@ export class TestGroup {
context: 'sandbox',
external: true,
import: imports,
mock: this.options.mocks,
},
sandbox: { basetSandbox: sandbox },
compiler: compiler.compile,
Expand Down

0 comments on commit b114f69

Please sign in to comment.