(options: Record<string, any>)
| 67 | |
| 68 | // TODO: Find proper type for options |
| 69 | export function makeCompilationEnvironment(options: Record<string, any>): CompilationEnvironment { |
| 70 | ensureTempCleanup(); |
| 71 | const compilerProps = new CompilerProps(options.languages, fakeProps(options.props || {})); |
| 72 | const compilationQueue = options.queue || new CompilationQueue(options.concurrency || 1, options.timeout, 100_000); |
| 73 | return new CompilationEnvironment(compilerProps, fakeProps({}), compilationQueue, options.doCache); |
| 74 | } |
| 75 | |
| 76 | export function makeFakeCompilerInfo(props: Partial<CompilerInfo>): CompilerInfo { |
| 77 | return props as CompilerInfo; |
no test coverage detected