You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: make large lambda warning message more informative (#2057)
* fix: make large lambda warning message more informative
* chore: added unit tests for size warning
* test: fix verification unit tests
---------
Co-authored-by: Michal Piechowiak <[email protected]>
it('emits a warning that DISABLE_BUNDLE_ZIP_SIZE_CHECK was enabled',async()=>{
102
128
process.env.DISABLE_BUNDLE_ZIP_SIZE_CHECK='true'
103
129
awaitcheckZipSize(chance.string())
104
-
expect(consoleSpy).toHaveBeenCalledWith('Function bundle size check was DISABLED with the DISABLE_BUNDLE_ZIP_SIZE_CHECK environment variable. Your deployment will break if it exceeds the maximum supported size of function zip files in your account.')
130
+
expect(consoleWarnSpy).toHaveBeenCalledWith(
131
+
'Function bundle size check was DISABLED with the DISABLE_BUNDLE_ZIP_SIZE_CHECK environment variable. Your deployment will break if it exceeds the maximum supported size of function zip files in your account.',
132
+
)
133
+
})
134
+
135
+
it('does not emit a warning if the file size is below the warning size',async()=>{
0 commit comments