From 94b78b232852abffc87253328a57b70b2894f75c Mon Sep 17 00:00:00 2001 From: SukkaW Date: Fri, 16 Aug 2024 23:30:21 +0800 Subject: [PATCH] test: bump memdisk and disable memdisk quiet --- package-lock.json | 25 ++++--------------------- package.json | 2 +- test/index.ts | 4 ++-- 3 files changed, 7 insertions(+), 24 deletions(-) diff --git a/package-lock.json b/package-lock.json index ea2dc31..88210f1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,7 @@ "eslint-config-sukka": "^4.1.10", "eslint-formatter-sukka": "^4.1.10", "fdir": "^6.2.0", - "memdisk": "^1.0.2", + "memdisk": "^1.0.4", "mocha": "^10.4.0", "mocha-chai-jest-snapshot": "^1.1.4", "picocolors": "^1.0.0", @@ -2316,12 +2316,6 @@ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==" }, - "node_modules/@types/gensync": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@types/gensync/-/gensync-1.0.4.tgz", - "integrity": "sha512-C3YYeRQWp2fmq9OryX+FoDy8nXS6scQ7dPptD8LnFDAUNcKWJjXQKDNJD3HVm+kOUsXhTOkpi69vI4EuAr95bA==", - "dev": true - }, "node_modules/@types/graceful-fs": { "version": "4.1.9", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", @@ -3089,15 +3083,6 @@ "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", "dev": true }, - "node_modules/commander": { - "version": "12.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", - "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", - "dev": true, - "engines": { - "node": ">=18" - } - }, "node_modules/commondir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", @@ -4815,14 +4800,12 @@ } }, "node_modules/memdisk": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/memdisk/-/memdisk-1.0.2.tgz", - "integrity": "sha512-H+12zunRzrCd3twH5UYkGbXwy3IcxJbq7fhaczihxwd2kAdkmKvWI1umEZ1+OMDZV1SGLA8d4CJ7F6tJWDvZCg==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/memdisk/-/memdisk-1.0.4.tgz", + "integrity": "sha512-87cO1Wyp9Ur4ShfQPaOqogftjSDO/ONplDPs7xYKCwLG5DumokAwRBv2gikXvUEQyVzL3jfBtMuwXg3xpd+TTA==", "dev": true, "dependencies": { "@jsdevtools/ez-spawn": "^3.0.4", - "@types/gensync": "^1.0.4", - "commander": "^12.1.0", "gensync": "1.0.0-beta.2", "picocolors": "^1.0.1", "which": "^4.0.0" diff --git a/package.json b/package.json index 5f563a5..76c785e 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "eslint-config-sukka": "^4.1.10", "eslint-formatter-sukka": "^4.1.10", "fdir": "^6.2.0", - "memdisk": "^1.0.2", + "memdisk": "^1.0.4", "mocha": "^10.4.0", "mocha-chai-jest-snapshot": "^1.1.4", "picocolors": "^1.0.0", diff --git a/test/index.ts b/test/index.ts index 8a14ba9..78a7296 100644 --- a/test/index.ts +++ b/test/index.ts @@ -377,7 +377,7 @@ const tests = (rollupImpl: typeof rollup2 | typeof rollup3 | typeof rollup4, iso }; describe('rollup-plugin-swc3', () => { - const ramDiskPath = create.sync('rolluppluginswc3test', 64 * 1024 * 1024); + const ramDiskPath = create.sync('rolluppluginswc3test', 64 * 1024 * 1024, { quiet: false }); describe('swc (rollup 2)', () => { const isolateDir = path.join(ramDiskPath, 'rollup2'); @@ -394,5 +394,5 @@ describe('rollup-plugin-swc3', () => { tests(rollup4, isolateDir); }); - after(() => destroy.sync(ramDiskPath)); + after(() => destroy.sync(ramDiskPath, { quiet: false })); });