From 001a1f941cd0e70d06b16e16f7d9d5cb63f425b6 Mon Sep 17 00:00:00 2001 From: mkrause Date: Sun, 19 May 2024 18:15:39 +0200 Subject: [PATCH] Downgrade to Node 20 to prevent segfault in GitHub Actions. --- .nvmrc | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.nvmrc b/.nvmrc index 2bd5a0a..48ef2c1 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -22 +20.9 diff --git a/package.json b/package.json index a575c7a..1a30367 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,8 @@ "repl": "tsx", "node": "node --import=tsx", "check:types": "tsc --noEmit && echo 'No type errors found'", - "test:unit": "node --import=tsx --test --test-reporter=spec \"**/*.test.ts\" # Note: glob requires Node v22", + "//test:unit": "node --import=tsx --test --test-reporter=spec \"**/*.test.ts\" # Note: glob requires Node v22", + "test:unit": "find {src,test} -name \"*.test.ts\" -exec node --import=tsx --test --test-reporter=spec {} ';'", "test:integration": "./tests/integration/run_integration_tests.sh", "test": "npm run test:integration # && npm run test:unit", "test-watch": "node --import=tsx --test --test-reporter=spec --watch tests",