diff --git a/src/compiler/transformers/test/type-library.spec.ts b/src/compiler/transformers/test/type-library.spec.ts index 30f047354d34..795dda708b12 100644 --- a/src/compiler/transformers/test/type-library.spec.ts +++ b/src/compiler/transformers/test/type-library.spec.ts @@ -6,8 +6,7 @@ import path from 'path'; import ts from 'typescript'; import { patchTypescript } from '../../sys/typescript/typescript-sys'; -import { getAllTypeReferences } from '../transform-utils'; -import { addFileToLibrary, addToLibrary, getTypeLibrary } from '../type-library'; +import { addFileToLibrary } from '../type-library'; function resetLibrary() { const library = getTypeLibrary(); @@ -56,8 +55,6 @@ async function setup() { rootDir: config.rootDir, }; - const contents = await compilerContext.fs.readdir('/src'); - const compilerHost = ts.createCompilerHost(options); const originalGetSourcefile = compilerHost.getSourceFile; compilerHost.getSourceFile = (fileName, ...args) => { @@ -84,7 +81,7 @@ describe('type library', () => { }); it('should be able to add a file to the library', async () => { - const { checker, mealModule, mealModulePath } = await setup(); + const { mealModulePath } = await setup(); addFileToLibrary(mealModulePath);