@ -49,7 +49,7 @@ export class NgtscTestEnvironment {
|
||||
*/
|
||||
static setup(): NgtscTestEnvironment {
|
||||
const support = setup();
|
||||
const outDir = path.join(support.basePath, 'built');
|
||||
const outDir = path.posix.join(support.basePath, 'built');
|
||||
process.chdir(support.basePath);
|
||||
|
||||
setupFakeCore(support);
|
||||
@ -133,7 +133,7 @@ export class NgtscTestEnvironment {
|
||||
|
||||
write(fileName: string, content: string) {
|
||||
if (this.multiCompileHostExt !== null) {
|
||||
const absFilePath = path.resolve(this.support.basePath, fileName);
|
||||
const absFilePath = path.posix.resolve(this.support.basePath, fileName);
|
||||
this.multiCompileHostExt.invalidate(absFilePath);
|
||||
}
|
||||
this.support.write(fileName, content);
|
||||
@ -143,7 +143,7 @@ export class NgtscTestEnvironment {
|
||||
if (this.multiCompileHostExt === null) {
|
||||
throw new Error(`Not caching files - call enableMultipleCompilations()`);
|
||||
}
|
||||
const fullFile = path.join(this.support.basePath, fileName);
|
||||
const fullFile = path.posix.join(this.support.basePath, fileName);
|
||||
this.multiCompileHostExt.invalidate(fullFile);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user