1- /* eslint-disable @typescript-eslint/no-deprecated */
21import { RmOptions } from "fs" ;
32import { fileURLToPath , pathToFileURL } from "url" ;
43import { CompilerPackageRoot , NodeHost } from "../core/node-host.js" ;
@@ -7,6 +6,7 @@ import { CompilerHost, StringLiteral, Type } from "../core/types.js";
76import { resolveVirtualPath } from "./fs.js" ;
87import { TestFileSystem , TestHostError , TypeSpecTestLibrary } from "./types.js" ;
98
9+ // eslint-disable-next-line @typescript-eslint/no-deprecated
1010export const StandardTestLibrary : TypeSpecTestLibrary = {
1111 name : "@typespec/compiler" ,
1212 packageRoot : CompilerPackageRoot ,
@@ -45,6 +45,7 @@ export function createTestCompilerHost(
4545 async readUrl ( url : string ) {
4646 const contents = virtualFs . get ( url ) ;
4747 if ( contents === undefined ) {
48+ // eslint-disable-next-line @typescript-eslint/no-deprecated
4849 throw new TestHostError ( `File ${ url } not found.` , "ENOENT" ) ;
4950 }
5051 return createSourceFile ( contents , url ) ;
@@ -53,6 +54,7 @@ export function createTestCompilerHost(
5354 path = resolveVirtualPath ( path ) ;
5455 const contents = virtualFs . get ( path ) ;
5556 if ( contents === undefined ) {
57+ // eslint-disable-next-line @typescript-eslint/no-deprecated
5658 throw new TestHostError ( `File ${ path } not found.` , "ENOENT" ) ;
5759 }
5860 return createSourceFile ( contents , path ) ;
@@ -101,6 +103,7 @@ export function createTestCompilerHost(
101103 path = resolveVirtualPath ( path ) ;
102104 const module = jsImports . get ( path ) ;
103105 if ( module === undefined ) {
106+ // eslint-disable-next-line @typescript-eslint/no-deprecated
104107 throw new TestHostError ( `Module ${ path } not found` , "ERR_MODULE_NOT_FOUND" ) ;
105108 }
106109 return module ;
@@ -133,6 +136,7 @@ export function createTestCompilerHost(
133136 }
134137 }
135138
139+ // eslint-disable-next-line @typescript-eslint/no-deprecated
136140 throw new TestHostError ( `File ${ path } not found` , "ENOENT" ) ;
137141 } ,
138142
0 commit comments