From 69a28e06714f580fa4bbcad6ef51063fb3c988ee Mon Sep 17 00:00:00 2001 From: Alice Pote Date: Thu, 11 May 2023 09:42:07 -0400 Subject: [PATCH] more "fixes" --- src/compiler/transformers/test/type-library.spec.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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);