diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9817d6e..c765f4d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,11 +38,9 @@ jobs: contents: read strategy: matrix: - node-version: [16, 18, 20] + node-version: [18, 20, 22] os: [macos-latest, ubuntu-latest, windows-latest] - exclude: - - node-version: 14 - os: windows-latest + steps: - name: Check out repo uses: actions/checkout@v4 diff --git a/test/base.test.js b/test/base.test.js index 866c4e8..2f21241 100644 --- a/test/base.test.js +++ b/test/base.test.js @@ -80,7 +80,7 @@ test('broken json', ({ match, same, plan }) => { const stream = build(function (source) { source.on('unknown', function (line, error) { same(expected, line) - const regex = /^(Unexpected end of JSON input|Unterminated string in JSON at position 12)$/ + const regex = /^(Unexpected end of JSON input|Unterminated string in JSON at position 12)( \(line 1 column 13\))?$/ match(error.message, regex) }) })