diff --git a/package.json b/package.json index 2ab57da..890dabe 100644 --- a/package.json +++ b/package.json @@ -60,11 +60,11 @@ "bin-wrapper": "^4.0.0" }, "devDependencies": { - "ava": "^3.15.0", + "ava": "^4.2.0", "bin-check": "^4.0.1", "compare-size": "^3.0.0", - "execa": "^5.1.1", - "tempy": "^2.0.0", - "xo": "^0.45.0" + "execa": "^6.1.0", + "tempy": "^3.0.0", + "xo": "^0.48.0" } } diff --git a/test/test.js b/test/test.js index 569fae4..ce5a2b7 100644 --- a/test/test.js +++ b/test/test.js @@ -3,8 +3,8 @@ import path from 'node:path'; import process from 'node:process'; import {fileURLToPath} from 'node:url'; import test from 'ava'; -import execa from 'execa'; -import tempy from 'tempy'; +import {execa} from 'execa'; +import {temporaryDirectory} from 'tempy'; import binCheck from 'bin-check'; import binBuild from 'bin-build'; import compareSize from 'compare-size'; @@ -17,7 +17,7 @@ test('rebuild the pngcrush binaries', async t => { return; } - const temporary = tempy.directory(); + const temporary = temporaryDirectory(); const source = fileURLToPath(new URL('../vendor/source/pngcrush-1.8.13.tar.gz', import.meta.url)); await binBuild.file(source, [ @@ -33,7 +33,7 @@ test('return path to binary and verify that it is working', async t => { }); test('minify a PNG', async t => { - const temporary = tempy.directory(); + const temporary = temporaryDirectory(); const src = fileURLToPath(new URL('fixtures/test.png', import.meta.url)); const dest = path.join(temporary, 'test.png'); const args = [