Skip to content

Commit

Permalink
test: run tests on node 12.22 and 16
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Oct 19, 2021
1 parent 6c493f0 commit beb3528
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Expand Up @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.11, 14, 16.8]
node-version: [12.22, 14, 16]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -62,7 +62,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.11, 14, 16.8]
node-version: [12.22, 14, 16]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -87,7 +87,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.11, 14, 16.8]
node-version: [12.22, 14, 16]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -112,7 +112,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.11, 14, 16.8]
node-version: [12.22, 14, 16]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
6 changes: 6 additions & 0 deletions test/utils.ts
Expand Up @@ -135,6 +135,12 @@ function sanitizeStackTrace(message?: string): string {

// Remove line numbers
.replace(/\.js:(\d*|:)*/g, '.js')

// Format node@16 error messages to be indentical with node@14
.replace(
/Cannot read properties of (\w*) \(reading ((\w|')*)\)/g,
'Cannot read property $2 of $1'
)
);
}

Expand Down

0 comments on commit beb3528

Please sign in to comment.