From 4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2 Mon Sep 17 00:00:00 2001 From: Jennifer Shehane Date: Thu, 9 Jul 2020 19:51:57 +0630 Subject: [PATCH] Update regex for matching Cypress version in tests to replace more version types (#7927) * Update regex for matching Cypress version to replace more version types * Increase max zip size from 190 to 200 --- packages/server/test/support/helpers/e2e.ts | 2 +- scripts/binary/zip.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/test/support/helpers/e2e.ts b/packages/server/test/support/helpers/e2e.ts index 1f4dfbe25c..34326d9fb2 100644 --- a/packages/server/test/support/helpers/e2e.ts +++ b/packages/server/test/support/helpers/e2e.ts @@ -151,7 +151,7 @@ const normalizeStdout = function (str, options: any = {}) { .replace(/(\s+?)(\d+ms|\d+:\d+:?\d+)/g, replaceDurationInTables) .replace(/(coffee|js)-\d{3}/g, '$1-456') // Cypress: 2.1.0 -> Cypress: 1.2.3 - .replace(/(Cypress\:\s+)(\d\.\d\.\d)/g, '$11.2.3') + .replace(/(Cypress\:\s+)(\d+\.\d+\.\d+)/g, '$11.2.3') // Node Version: 10.2.3 (Users/jane/node) -> Node Version: X (foo/bar/node) .replace(/(Node Version\:\s+v)(\d+\.\d+\.\d+)( \(.*\)\s+)/g, replaceNodeVersion) // 15 seconds -> X second diff --git a/scripts/binary/zip.js b/scripts/binary/zip.js index f763f0fce7..47ab697961 100644 --- a/scripts/binary/zip.js +++ b/scripts/binary/zip.js @@ -73,7 +73,7 @@ const checkZipSize = function (zipPath) { const zipSize = filesize(stats.size, { round: 0 }) console.log(`zip file size ${zipSize}`) - const MAX_ALLOWED_SIZE_MB = os.platform() === 'win32' ? 245 : 190 + const MAX_ALLOWED_SIZE_MB = os.platform() === 'win32' ? 245 : 200 const MAX_ZIP_FILE_SIZE = megaBytes(MAX_ALLOWED_SIZE_MB) if (stats.size > MAX_ZIP_FILE_SIZE) {