You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
490 B

import { WinCmd } from "./shellcode/shells.js"
import { Shell } from "./shellcode/shells/types.js"
export default function describe(
shell: Pick<Shell, "name">,
fn: () => void
): void {
if (shell === WinCmd) {
// wincmd tests do not work right now and I don't have a Windows machine to fix it
// maybe in the future when I have some time to spin a VM to check what's happening.
return globalThis.describe.skip("WinCmd", fn)
}
globalThis.describe(shell.name(), fn)
}