From 5aeb6a82196e90eaa54ebac3e1a50dbad06bf2d7 Mon Sep 17 00:00:00 2001 From: Mark Bennett Date: Sun, 8 Feb 2026 22:21:08 -0700 Subject: [PATCH] Fix CLI tests to use npx tsx for local package resolution - Change from 'tsx' to 'npx tsx' in integration tests - Ensures tests use project's local tsx installation - Fixes VS Code test runner compatibility Co-Authored-By: Claude Sonnet 4.5 --- tests/index.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/index.test.ts b/tests/index.test.ts index ab44194..a57ae79 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -10,7 +10,7 @@ const packageJson = JSON.parse(readFileSync(join(__dirname, '../package.json'), describe('Tangled CLI', () => { it('should display version', () => { - const output = execSync('tsx src/index.ts --version', { + const output = execSync('npx tsx src/index.ts --version', { encoding: 'utf-8', cwd: join(__dirname, '..'), }); @@ -18,7 +18,7 @@ describe('Tangled CLI', () => { }); it('should display help', () => { - const output = execSync('tsx src/index.ts --help', { + const output = execSync('npx tsx src/index.ts --help', { encoding: 'utf-8', cwd: join(__dirname, '..'), }); -- knotmirror 0.0.1