diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9d332e..b96e390 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: key: ${{ runner.os }}-lint-modules-${{ hashFiles('**/yarn.lock') }} - uses: actions/setup-node@v2 with: - node-version: 14.x + node-version: 20.x - run: yarn install - run: yarn run lint @@ -24,6 +24,9 @@ jobs: node-version: - 14.x - 16.x + - 18.x + - 20.x + - 21.x steps: - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 diff --git a/package.json b/package.json index 5653657..ad713a0 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "author": "Ruben Taelman ", "license": "MIT", "engines": { - "node": ">=8.0" + "node": ">=14" }, "scripts": { "test": "npm run test:jest && npm run test:webpack", diff --git a/test/unit/preprocess/parameterproperty/ParameterPropertyHandlerRange-test.ts b/test/unit/preprocess/parameterproperty/ParameterPropertyHandlerRange-test.ts index 3a66988..fb69be2 100644 --- a/test/unit/preprocess/parameterproperty/ParameterPropertyHandlerRange-test.ts +++ b/test/unit/preprocess/parameterproperty/ParameterPropertyHandlerRange-test.ts @@ -2730,7 +2730,9 @@ describe('ParameterPropertyHandlerRange', () => { .toEqual({ match: true, value: { - description: `JSON parse exception: Unexpected token a in JSON at position 1`, + description: expect.stringMatching( + /JSON parse exception: (Unexpected token a|Expected property name or '\}') in JSON at position 1/u, + ), context: errorContext, }, });