From 271c3b05603b0dc055dcda56f12ad2786cff398d Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Thu, 4 Nov 2021 12:08:46 -0300 Subject: [PATCH 1/3] chore: upgrade tap version --- .taprc | 4 ++++ package.json | 2 +- test/basic.test.js | 4 ++-- test/cmd-collect-analysing.test.js | 4 ++-- test/cmd-dest.test.js | 4 ++-- test/detect-port.test.js | 6 +++--- test/failure.test.js | 4 ++-- 7 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.taprc b/.taprc index db5b95a..f8be517 100644 --- a/.taprc +++ b/.taprc @@ -1,3 +1,7 @@ coverage: true timeout: 100 jobs: 1 +branches: 90 +statements: 90 +lines: 90 +functions: 90 diff --git a/package.json b/package.json index c591229..38b6ffb 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,6 @@ "open": "^7.3.0", "snazzy": "^8.0.0", "standard": "^14.3.1", - "tap": "^14.10.6" + "tap": "^15.0.10" } } diff --git a/test/basic.test.js b/test/basic.test.js index cfbd600..84626ad 100644 --- a/test/basic.test.js +++ b/test/basic.test.js @@ -12,14 +12,14 @@ test('cmd - test collect - data exists, html generated', t => { let count = 0 function callback (err) { - t.ifError(err) + t.error(err) if (++count === 2) { t.end() } } - t.ifError(err) + t.error(err) t.match(filename, /[0-9]+\.clinic-heapprofile$/) diff --git a/test/cmd-collect-analysing.test.js b/test/cmd-collect-analysing.test.js index 34187bc..544dbc6 100644 --- a/test/cmd-collect-analysing.test.js +++ b/test/cmd-collect-analysing.test.js @@ -9,12 +9,12 @@ test('test collect - emits "analysing" event', t => { const tool = new ClinicHeapProfiler() function cleanup (err, filename) { - t.ifError(err) + t.error(err) t.match(filename, /[0-9]+\.clinic-heapprofile$/) fs.unlink(filename, err => { - t.ifError(err) + t.error(err) t.end() }) } diff --git a/test/cmd-dest.test.js b/test/cmd-dest.test.js index 56cd3ec..32a9896 100644 --- a/test/cmd-dest.test.js +++ b/test/cmd-dest.test.js @@ -12,14 +12,14 @@ test('cmd - test collect - custom output destination', t => { let count = 0 function callback (err) { - t.ifError(err) + t.error(err) if (++count === 2) { t.end() } } - t.ifError(err) + t.error(err) t.match(filename, /^test-output-destination$/) diff --git a/test/detect-port.test.js b/test/detect-port.test.js index 5f7b91e..8a46346 100644 --- a/test/detect-port.test.js +++ b/test/detect-port.test.js @@ -13,14 +13,14 @@ test('cmd - collect - detect server port', t => { let count = 0 function callback (err) { - t.ifError(err) + t.error(err) if (++count === 2) { t.end() } } - t.ifError(err) + t.error(err) t.match(filename, /[0-9]+\.clinic-heapprofile$/) @@ -61,7 +61,7 @@ test('cmd - collect - detect server port', t => { res.on('data', data => buf.push(data)) res.on('end', () => { - t.deepEquals(Buffer.concat(buf), Buffer.from('from server')) + t.same(Buffer.concat(buf), Buffer.from('from server')) tool.stopViaIPC() }) diff --git a/test/failure.test.js b/test/failure.test.js index a4d2524..abaa1f4 100644 --- a/test/failure.test.js +++ b/test/failure.test.js @@ -18,12 +18,12 @@ test('cmd - test collect - works with nonzero exit code when collectOnFailure=tr const tool = new ClinicHeapProfiler({ collectOnFailure: true }) function cleanup (err, filename) { - t.ifError(err) + t.error(err) t.match(filename, /[0-9]+\.clinic-heapprofile$/) fs.unlink(filename, err => { - t.ifError(err) + t.error(err) t.end() }) } From 87d0f74324ac88ccf8583a5810950129c3a9495b Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Thu, 4 Nov 2021 12:08:54 -0300 Subject: [PATCH 2/3] chore: add support v16 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b05e335..f6a0565 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - node-version: [12.13.0, 12.x, 14.x, 15.x] + node-version: [12.13.0, 12.x, 14.x, 15.x, 16.x, 17.x] runs-on: ${{matrix.os}} steps: From 190d2da95b8aad6479857ae382eb106c2ab260eb Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Thu, 4 Nov 2021 12:55:54 -0300 Subject: [PATCH 3/3] trigger ci