From b2182098542660a93b744a2b3462b88919a36d39 Mon Sep 17 00:00:00 2001 From: Marek Rusinowski Date: Sun, 9 Jun 2024 01:20:59 +0200 Subject: [PATCH] Add 2.5s timeout for tests And that puts the nail in the coffin for node 18 that doesn't implement that option. --- .github/workflows/ci.yml | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8e65b7..07d2f05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [18, 20, 22] + node: [20, 22] steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 diff --git a/package.json b/package.json index a142de4..a3c9b69 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "start": "tsc && node --enable-source-maps dist/main.js", "build": "tsc", "build:prod": "tsc -p tsconfig.prod.json", - "test": "tsc && node --enable-source-maps --test", + "test": "tsc && node --enable-source-maps --test --test-timeout=2500", "coverage": "tsc && node --enable-source-maps --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info", "lint": "eslint src --ext .ts", "lint:fix": "eslint src --ext .ts --fix", @@ -18,7 +18,7 @@ "license": "Apache-2.0", "type": "module", "engines": { - "node": ">=18.20" + "node": ">=20" }, "dependencies": { "ajv": "^8.14.0",