From 37583826d74f82e0bb93080efdb32ebab257a3c1 Mon Sep 17 00:00:00 2001 From: Mike Penz Date: Fri, 31 Jan 2025 19:37:05 +0100 Subject: [PATCH] - attempt to fix tests --- __tests__/main.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index 2e89f70..288e4ba 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -4,10 +4,14 @@ import * as cp from 'child_process' import * as fs from 'fs' import {clear} from '../src/transform.js' import {jest} from '@jest/globals' +import { fileURLToPath } from 'url'; jest.setTimeout(180000) clear() +const __filename = fileURLToPath(import.meta.url); // get the resolved path to the file +const __dirname = path.dirname(__filename); // get the name of the directory + test('missing values should result in failure', () => { expect.assertions(1)