From 4fa471263f820a1405820067246d96294a4bc4a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Krzeslak?= Date: Wed, 23 Jul 2025 21:05:18 +0200 Subject: [PATCH] test: export type to be usable in test --- src/converters/assimp.ts | 2 +- tests/assimp.test.ts | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/converters/assimp.ts b/src/converters/assimp.ts index 9db38ce..95aa2b9 100644 --- a/src/converters/assimp.ts +++ b/src/converters/assimp.ts @@ -1,6 +1,6 @@ import { execFile as execFileOriginal } from "node:child_process"; -type ExecFileFn = ( +export type ExecFileFn = ( cmd: string, args: string[], callback: (err: Error | null, stdout: string, stderr: string) => void, diff --git a/tests/assimp.test.ts b/tests/assimp.test.ts index 062c115..fea0e9f 100644 --- a/tests/assimp.test.ts +++ b/tests/assimp.test.ts @@ -1,12 +1,6 @@ import type { ExecFileException } from "node:child_process"; import { expect, test } from "bun:test"; -import { convert } from "../src/converters/assimp"; - -type ExecFileFn = ( - cmd: string, - args: string[], - callback: (err: Error | null, stdout: string, stderr: string) => void, -) => void; +import { convert, ExecFileFn } from "../src/converters/assimp"; test("convert resolves when execFile succeeds", async () => { const originalConsoleLog = console.log;