diff --git a/package-lock.json b/package-lock.json index c47f3c9..93ea994 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41,13 +41,13 @@ "@types/serverless": "^3.12.14", "all-contributors-cli": "^6.24.0", "esbuild": "^0.24.0", - "esbuild-node-externals": "^1.14.0", + "esbuild-node-externals": "^1.15.0", "eslint": "^8.56.0", "extract-zip": "^2.0.1", "husky": "^8.0.2", "jest": "^29.3.1", "lint-staged": "^13.1.0", - "mock-fs": "^5.2.0", + "mock-fs": "^5.3.0", "mock-spawn": "^0.2.6", "prettier": "^2.8.1", "semantic-release": "^19.0.5", @@ -5443,9 +5443,9 @@ } }, "node_modules/esbuild-node-externals": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/esbuild-node-externals/-/esbuild-node-externals-1.14.0.tgz", - "integrity": "sha512-jMWnTlCII3cLEjR5+u0JRSTJuP+MgbjEHKfwSIAI41NgLQ0ZjfzjchlbEn0r7v2u5gCBMSEYvYlkO7GDG8gG3A==", + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/esbuild-node-externals/-/esbuild-node-externals-1.15.0.tgz", + "integrity": "sha512-lM5f3CQL9Ctv6mBwwYAEMcphK2qrjVRnemT1mufECpFaidZvFVvQDPcuno/MQfLVk4utVuSVxm1RHLyg/ONQ/A==", "dev": true, "dependencies": { "find-up": "^5.0.0", @@ -5455,7 +5455,7 @@ "node": ">=12" }, "peerDependencies": { - "esbuild": "0.12 - 0.23" + "esbuild": "0.12 - 0.24" } }, "node_modules/escalade": { @@ -9359,9 +9359,9 @@ } }, "node_modules/mock-fs": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/mock-fs/-/mock-fs-5.2.0.tgz", - "integrity": "sha512-2dF2R6YMSZbpip1V1WHKGLNjr/k48uQClqMVb5H3MOvwc9qhYis3/IWbj02qIg/Y8MDXKFF4c5v0rxx2o6xTZw==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/mock-fs/-/mock-fs-5.3.0.tgz", + "integrity": "sha512-IMvz1X+RF7vf+ur7qUenXMR7/FSKSIqS3HqFHXcyNI7G0FbpFO8L5lfsUJhl+bhK1AiulVHWKUSxebWauPA+xQ==", "dev": true, "engines": { "node": ">=12.0.0" @@ -19133,9 +19133,9 @@ } }, "esbuild-node-externals": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/esbuild-node-externals/-/esbuild-node-externals-1.14.0.tgz", - "integrity": "sha512-jMWnTlCII3cLEjR5+u0JRSTJuP+MgbjEHKfwSIAI41NgLQ0ZjfzjchlbEn0r7v2u5gCBMSEYvYlkO7GDG8gG3A==", + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/esbuild-node-externals/-/esbuild-node-externals-1.15.0.tgz", + "integrity": "sha512-lM5f3CQL9Ctv6mBwwYAEMcphK2qrjVRnemT1mufECpFaidZvFVvQDPcuno/MQfLVk4utVuSVxm1RHLyg/ONQ/A==", "dev": true, "requires": { "find-up": "^5.0.0", @@ -21998,9 +21998,9 @@ } }, "mock-fs": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/mock-fs/-/mock-fs-5.2.0.tgz", - "integrity": "sha512-2dF2R6YMSZbpip1V1WHKGLNjr/k48uQClqMVb5H3MOvwc9qhYis3/IWbj02qIg/Y8MDXKFF4c5v0rxx2o6xTZw==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/mock-fs/-/mock-fs-5.3.0.tgz", + "integrity": "sha512-IMvz1X+RF7vf+ur7qUenXMR7/FSKSIqS3HqFHXcyNI7G0FbpFO8L5lfsUJhl+bhK1AiulVHWKUSxebWauPA+xQ==", "dev": true }, "mock-spawn": { diff --git a/package.json b/package.json index fb07607..6db65fb 100644 --- a/package.json +++ b/package.json @@ -85,13 +85,13 @@ "@types/serverless": "^3.12.14", "all-contributors-cli": "^6.24.0", "esbuild": "^0.24.0", - "esbuild-node-externals": "^1.14.0", + "esbuild-node-externals": "^1.15.0", "eslint": "^8.56.0", "extract-zip": "^2.0.1", "husky": "^8.0.2", "jest": "^29.3.1", "lint-staged": "^13.1.0", - "mock-fs": "^5.2.0", + "mock-fs": "^5.3.0", "mock-spawn": "^0.2.6", "prettier": "^2.8.1", "semantic-release": "^19.0.5", @@ -111,7 +111,6 @@ "node": ">=18.0.0" }, "overrides": { - "esbuild": "$esbuild", "eslint": "$eslint" } } diff --git a/src/tests/util.test.ts b/src/tests/util.test.ts index 2414906..8b92052 100644 --- a/src/tests/util.test.ts +++ b/src/tests/util.test.ts @@ -1,5 +1,3 @@ -// eslint-disable-next-line eslint-comments/disable-enable-pair -/* eslint-disable jest/no-standalone-expect */ import fs from 'fs-extra'; import mockFs from 'mock-fs'; import path from 'path'; @@ -19,9 +17,6 @@ describe('utils/findProjectRoot', () => { }); }); -const nodeVersion = parseInt(process.versions.node.split('.')[0]!, 10); -const itNode18 = nodeVersion > 18 ? it.skip : it; - describe('utils/zip', () => { const mtime = new Date(2024, 0, 1, 0, 0, 0, 0); @@ -67,7 +62,7 @@ describe('utils/zip', () => { await expect(zip(zipPath, filesPathList)).rejects.toThrow("ENOENT, no such file or directory '/src/incorrect.txt'"); }); - itNode18.each([{ useNativeZip: true }, { useNativeZip: false }])( + it.each([{ useNativeZip: true }, { useNativeZip: false }])( 'should properly archive files when useNativeZip=$useNativeZip.', async ({ useNativeZip }) => { const source = '/src';