diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 17036cb..2dcf3f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ jobs: test: strategy: matrix: - node-version: [16.x, 18.x, 19.x] + node-version: [14.x, 16.x, 18.x, 19.x] os: [ubuntu-latest, windows-latest, macos-latest] fail-fast: true runs-on: ${{ matrix.os }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f861ef5..f74398c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: test: strategy: matrix: - node-version: [16.x, 18.x, 19.x] + node-version: [14.x, 16.x, 18.x, 19.x] os: [ubuntu-latest, windows-latest, macos-latest] fail-fast: true runs-on: ${{ matrix.os }} diff --git a/package.json b/package.json index 0a04ee3..03b8373 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "@matteoh2o1999/github-actions-jest-reporter", - "version": "1.0.2", + "version": "1.1.0", "description": "A Github Actions reporter for Jest supporting log folding", "main": "src/index.js", "types": "src/index.d.ts", "engines": { - "node": ">=16.6.0" + "node": ">=14.0.0" }, "keywords": [ "jest", diff --git a/src/gha.reporter.js b/src/gha.reporter.js index b00c756..d288ada 100644 --- a/src/gha.reporter.js +++ b/src/gha.reporter.js @@ -125,7 +125,7 @@ class GithubActionsReporter extends reporters.BaseReporter { __getResultChildren(suiteResult, ancestors) { let node = { - name: ancestors.at(-1), + name: ancestors[ancestors.length - 1], passed: true, children: [] };