Skip to content

Commit 03a0279

Browse files
committed
fix test
1 parent 8bceeac commit 03a0279

File tree

2 files changed

+23
-10
lines changed

2 files changed

+23
-10
lines changed

dev-packages/e2e-tests/test-applications/aws-serverless-esm/tests/basic.test.ts

+14-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ test('AWS Serverless SDK sends events in ESM mode', async ({ request }) => {
4343
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
4444
});
4545

46-
expect(transactionEvent.spans).toHaveLength(2);
46+
expect(transactionEvent.spans).toHaveLength(3);
4747

4848
// shows that the Otel Http instrumentation is working
4949
expect(transactionEvent.spans).toContainEqual(
@@ -58,6 +58,19 @@ test('AWS Serverless SDK sends events in ESM mode', async ({ request }) => {
5858
}),
5959
);
6060

61+
expect(transactionEvent.spans).toContainEqual(
62+
expect.objectContaining({
63+
data: {
64+
'sentry.op': 'function.aws.lambda',
65+
'sentry.origin': 'auto.function.serverless',
66+
'sentry.source': 'component',
67+
},
68+
description: 'my-lambda',
69+
op: 'function.aws.lambda',
70+
origin: 'auto.function.serverless',
71+
}),
72+
);
73+
6174
// shows that the manual span creation is working
6275
expect(transactionEvent.spans).toContainEqual(
6376
expect.objectContaining({

yarn.lock

+9-9
Original file line numberDiff line numberDiff line change
@@ -27314,17 +27314,17 @@ pkg-up@^3.1.0:
2731427314
dependencies:
2731527315
find-up "^3.0.0"
2731627316

27317-
playwright-core@1.49.0:
27318-
version "1.49.0"
27319-
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.49.0.tgz#8e69ffed3f41855b854982f3632f2922c890afcb"
27320-
integrity sha512-R+3KKTQF3npy5GTiKH/T+kdhoJfJojjHESR1YEWhYuEKRVfVaxH3+4+GvXE5xyCngCxhxnykk0Vlah9v8fs3jA==
27317+
playwright-core@1.44.1:
27318+
version "1.44.1"
27319+
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.44.1.tgz#53ec975503b763af6fc1a7aa995f34bc09ff447c"
27320+
integrity sha512-wh0JWtYTrhv1+OSsLPgFzGzt67Y7BE/ZS3jEqgGBlp2ppp1ZDj8c+9IARNW4dwf1poq5MgHreEM2KV/GuR4cFA==
2732127321

27322-
playwright@1.49.0:
27323-
version "1.49.0"
27324-
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.49.0.tgz#df6b9e05423377a99658202844a294a8afb95d0a"
27325-
integrity sha512-eKpmys0UFDnfNb3vfsf8Vx2LEOtflgRebl0Im2eQQnYMA4Aqd+Zw8bEOB+7ZKvN76901mRnqdsiOGKxzVTbi7A==
27322+
playwright@1.44.1:
27323+
version "1.44.1"
27324+
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.44.1.tgz#5634369d777111c1eea9180430b7a184028e7892"
27325+
integrity sha512-qr/0UJ5CFAtloI3avF95Y0L1xQo6r3LQArLIg/z/PoGJ6xa+EwzrwO5lpNr/09STxdHuUoP2mvuELJS+hLdtgg==
2732627326
dependencies:
27327-
playwright-core "1.49.0"
27327+
playwright-core "1.44.1"
2732827328
optionalDependencies:
2732927329
fsevents "2.3.2"
2733027330

0 commit comments

Comments
 (0)