test: export type to be usable in test

This commit is contained in:
Jörg Krzeslak 2025-07-23 21:05:18 +02:00
parent 435f654cbe
commit 4fa471263f
2 changed files with 2 additions and 8 deletions

View file

@ -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,

View file

@ -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;