Skip to content

Commit

Permalink
more "fixes"
Browse files Browse the repository at this point in the history
  • Loading branch information
alicewriteswrongs committed May 11, 2023
1 parent 8ab7f00 commit 69a28e0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/compiler/transformers/test/type-library.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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) => {
Expand All @@ -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);

Expand Down

0 comments on commit 69a28e0

Please sign in to comment.