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
@@ -148,4 +154,16 @@ describe('SAM utils', async function () {
148
154
})
149
155
})
150
156
})
157
+
158
+
describe('gets the SAM CLI error from stderr',asyncfunction(){
159
+
it('returns the error message',asyncfunction(){
160
+
conststderr=
161
+
'Starting Build use cache\nStarting Build inside a container\nCache is invalid, running build and copying resources for following functions (ResizerFunction)\nBuilding codeuri: /Users/mbfreder/TestApp/JavaSamApp/serverless-patterns/s3lambda-resizing-python/src runtime: python3.12 metadata: {} architecture: x86_64 functions: ResizerFunction\nError: Docker is unreachable. Docker needs to be running to build inside a container.'
162
+
constresponse=getSamCliErrorMessage(stderr)
163
+
assert.deepStrictEqual(
164
+
response,
165
+
'Error: Docker is unreachable. Docker needs to be running to build inside a container.'
0 commit comments