Migrate from mocha to Node.js native test runner

Includes coverage reports when using Node.js 22 onwards
This commit is contained in:
Lovell Fuller
2025-09-21 11:04:55 +01:00
parent c446d743a2
commit f2978651f0
70 changed files with 583 additions and 541 deletions

View File

@@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
const fs = require('node:fs');
const { afterEach, beforeEach, describe, it } = require('node:test');
const assert = require('node:assert');
const sharp = require('../../');
@@ -15,7 +16,7 @@ describe('Clone', function () {
sharp.cache(true);
});
it('Read from Stream and write to multiple Streams', function (done) {
it('Read from Stream and write to multiple Streams', function (_t, done) {
let finishEventsExpected = 2;
// Output stream 1
const output1 = fixtures.path('output.multi-stream.1.jpg');