Skip to content

Commit

Permalink
test: fix types (#23202)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice authored Jul 6, 2023
1 parent 75ceba6 commit 1195c31
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { jest } from '@jest/globals';
import callsite from 'callsite';
import { DirectoryJSON, fs as memfs, vol } from 'memfs';
import type { TDataOut } from 'memfs/lib/encoding';
import type { IOptions } from 'memfs/lib/volume';
import upath from 'upath';

// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
Expand Down Expand Up @@ -109,12 +108,9 @@ export class Fixtures {
}
}

export function readFile(
fileName: string,
options: IOptions
): Promise<TDataOut> {
export function readFile(fileName: string, options: any): Promise<TDataOut> {
if (fileName.endsWith('.wasm') || fileName.endsWith('.wasm.gz')) {
return fs.promises.readFile(fileName, options as any);
return fs.promises.readFile(fileName, options);
}

return memfs.promises.readFile(fileName, options);
Expand Down

0 comments on commit 1195c31

Please sign in to comment.