]> zoso.dev Git - libnemo.git/commitdiff
Add flag to force exit if long running tests (like when worker thread listeners are...
authorChris Duncan <chris@zoso.dev>
Wed, 20 Nov 2024 01:14:35 +0000 (17:14 -0800)
committerChris Duncan <chris@zoso.dev>
Wed, 20 Nov 2024 01:14:35 +0000 (17:14 -0800)
package.json

index e6d889e2b6de85a1d9604aeab2fd9245b355e9b0..eaa93eab21635e7f9e2cc2c467e3ca16bbb1efdb 100644 (file)
@@ -43,7 +43,7 @@
        },
        "scripts": {
                "build": "rm -rf dist && tsc && esbuild main.min=dist/main.js global.min=dist/global.js --outdir=dist --target=es2022 --format=esm --bundle --minify --sourcemap",
-               "test": "npm run build -- --platform=node && node --test --env-file .env",
+               "test": "npm run build -- --platform=node && node --test --test-force-exit --env-file .env",
                "test:coverage": "npm run test -- --experimental-test-coverage",
                "test:coverage:report": "npm run test:coverage -- --test-reporter=lcov --test-reporter-destination=coverage.info && genhtml coverage.info --output-directory test/coverage && rm coverage.info && xdg-open test/coverage/index.html"
        },