diff --git a/tests/_setupTeardown/npmInstall.js b/tests/_setupTeardown/npmInstall.js index 659730eb8..89e90dcfc 100644 --- a/tests/_setupTeardown/npmInstall.js +++ b/tests/_setupTeardown/npmInstall.js @@ -8,15 +8,15 @@ import { detectExecutable, } from '../../src/utils/index.js' -const executables = ['python2', 'python3', 'ruby', 'java'] +const executables = ['java', 'python2', 'python3', 'ruby'] const testFolders = [ '../integration/docker/access-host/src', '../scenario/apollo-server-lambda', '../scenario/docker-in-docker', '../scenario/docker-serverless-webpack-test', - '../scenario/serverless-webpack-test', '../scenario/serverless-plugin-typescript-test', + '../scenario/serverless-webpack-test', ] async function detectDocker() { diff --git a/tests/integration/_testHelpers/compressArtifact.js b/tests/integration/_testHelpers/compressArtifact.js index a83fbda31..82fd18ca9 100644 --- a/tests/integration/_testHelpers/compressArtifact.js +++ b/tests/integration/_testHelpers/compressArtifact.js @@ -8,10 +8,12 @@ export default async function compressArtifact(baseDir, dest, src = []) { const destPath = resolve(baseDir, dest) await ensureDir(dirname(destPath)) - return new Promise((_resolve, reject) => { + return new Promise((res, rej) => { const output = createWriteStream(destPath) const archive = archiver('zip', { - zlib: { level: 9 }, + zlib: { + level: 9, + }, }) output.on('open', async () => { @@ -32,7 +34,7 @@ export default async function compressArtifact(baseDir, dest, src = []) { await archive.finalize() }) - archive.on('error', (err) => reject(err)) - output.on('close', () => _resolve()) + archive.on('error', (err) => rej(err)) + output.on('close', () => res()) }) }