mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-02 11:58:12 +03:00
i have no idea why this doesn't work but I don't have the time to investigate properly at the moment. How bizarre. We definitely have ts-node installed, and pnpm ts-node should work reliably. If anything, what we're doing right now *shouldn't* work!
11 lines
401 B
JavaScript
11 lines
401 B
JavaScript
// This runs as JS because of https://github.com/tapjs/node-tap/issues/761
|
|
|
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
const { execSync } = require("child_process");
|
|
const path = require("path");
|
|
|
|
const assert = require("assert");
|
|
|
|
assert(process.env.NODE_ENV === "test", "NODE_ENV WAS NOT TEST, BAILING");
|
|
execSync(`ts-node ${path.join(__dirname, "./setup.ts")}`, { stdio: "inherit" });
|