From 76ee779b41a030c91950bfb196e1ef33d2c7a60b Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Fri, 24 Oct 2025 14:37:21 +0200 Subject: [PATCH] test(builder.policy): fix --- builder/policy/test/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/policy/test/index.ts b/builder/policy/test/index.ts index d4f6f0b5e1..53467b9a98 100644 --- a/builder/policy/test/index.ts +++ b/builder/policy/test/index.ts @@ -32,7 +32,7 @@ it('should not allow patterns in onlyBuiltDependencies', () => { it('should onlyBuiltDependencies set via a file', () => { const allowBuild = createAllowBuildFunction({ - onlyBuiltDependenciesFile: path.join(__dirname, 'onlyBuild.json'), + onlyBuiltDependenciesFile: path.join(import.meta.dirname, 'onlyBuild.json'), }) expect(typeof allowBuild).toBe('function') expect(allowBuild!('zoo', '1.0.0')).toBeTruthy() @@ -43,7 +43,7 @@ it('should onlyBuiltDependencies set via a file', () => { it('should onlyBuiltDependencies set via a file and config', () => { const allowBuild = createAllowBuildFunction({ onlyBuiltDependencies: ['bar'], - onlyBuiltDependenciesFile: path.join(__dirname, 'onlyBuild.json'), + onlyBuiltDependenciesFile: path.join(import.meta.dirname, 'onlyBuild.json'), }) expect(typeof allowBuild).toBe('function') expect(allowBuild!('zoo', '1.0.0')).toBeTruthy()