Files
zkldi_Tachi/server/src/test-utils/hack-setup.js
T
zkldi 82a9cc77aa fix: we can't use pnpm ts-node
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!
2022-10-20 11:49:40 +01:00

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" });