UNPKG

testeranto

Version:

the AI powered BDD test framework for typescript projects

12 lines (10 loc) 502 B
import { createRequire } from 'node:module'; import path from 'node:path'; import url from 'node:url'; // globalThis.require = createRequire(import.meta.url); globalThis.__filename = url.fileURLToPath(import.meta.url); globalThis.__dirname = path.dirname(__filename); // const p = `${import.meta.url}/..`; // globalThis.require = createRequire(`${import.meta.url}/..`); // globalThis.__filename = url.fileURLToPath(`${import.meta.url}/..`); // globalThis.__dirname = path.dirname(`${__filename}/..`);