diff --git a/scripts/node/package.json b/scripts/node/package.json index d9673b2..8ed67d5 100644 --- a/scripts/node/package.json +++ b/scripts/node/package.json @@ -5,11 +5,11 @@ "main": "promptops.js", "type": "module", "scripts": { - "test": "node --import tsx --test --test-concurrency=1 --test-force-exit --test-reporter=spec \"**/*.test.ts\"", - "test:unit": "node --import tsx --test --test-concurrency=1 --test-force-exit --test-reporter=spec \"plugins/**/*.test.ts\"", - "test:integration": "node --import tsx --test --test-concurrency=1 --test-force-exit --test-reporter=spec \"tests/integration/**/*.test.ts\"", - "test:all": "node --import tsx --test --test-concurrency=1 --test-force-exit --test-reporter=spec \"**/*.test.ts\"", - "test:watch": "node --import tsx --test --test-concurrency=1 --test-force-exit --watch \"**/*.test.ts\"", + "test": "node --import tsx --test --test-isolation=none --test-force-exit --test-reporter=spec \"**/*.test.ts\"", + "test:unit": "node --import tsx --test --test-isolation=none --test-force-exit --test-reporter=spec \"plugins/**/*.test.ts\"", + "test:integration": "node --import tsx --test --test-isolation=none --test-force-exit --test-reporter=spec \"tests/integration/**/*.test.ts\"", + "test:all": "node --import tsx --test --test-isolation=none --test-force-exit --test-reporter=spec \"**/*.test.ts\"", + "test:watch": "node --import tsx --test --test-isolation=none --test-force-exit --watch \"**/*.test.ts\"", "lint": "echo 'No linting configured'", "build": "tsc", "test:optimizer": "tsx --test --test-reporter=spec plugins/optimizer/*.test.ts", diff --git a/scripts/node/promptops.ts b/scripts/node/promptops.ts index 09d4a86..278cdb0 100755 --- a/scripts/node/promptops.ts +++ b/scripts/node/promptops.ts @@ -103,4 +103,4 @@ async function main() { } } -main(); \ No newline at end of file +main().then(() => process.exit(0)).catch(() => process.exit(1)); \ No newline at end of file diff --git a/scripts/node/tests/integration/cli-flow.test.ts b/scripts/node/tests/integration/cli-flow.test.ts index d24300f..956816d 100644 --- a/scripts/node/tests/integration/cli-flow.test.ts +++ b/scripts/node/tests/integration/cli-flow.test.ts @@ -9,7 +9,7 @@ const execAsync = promisify(exec); describe('Integration: CLI Flow', () => { // Chemin vers le CLI (ajuste selon ton architecture) - const CLI_PATH = 'tsx promptops.ts'; + const CLI_PATH = 'npx tsx promptops.ts'; describe('promptops run', () => { it('should execute hello-world plugin successfully', async () => {