(...mockDirs: {[fileName: string]: string}[])
| 94 | } |
| 95 | |
| 96 | function writeFiles(...mockDirs: {[fileName: string]: string}[]) { |
| 97 | mockDirs.forEach((dir) => { |
| 98 | Object.keys(dir).forEach((fileName) => { |
| 99 | write(fileName, dir[fileName]); |
| 100 | }); |
| 101 | }); |
| 102 | } |
| 103 | |
| 104 | function createCompilerOptions(overrideOptions: ng.CompilerOptions = {}): ng.CompilerOptions { |
| 105 | return {...defaultCompilerOptions, ...overrideOptions}; |