Skip to content

Commit 3704dee

Browse files
committed
fix tests
1 parent 69a47f7 commit 3704dee

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

dev-packages/node-integration-tests/suites/contextLines/filename-with-spaces/test.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ describe('ContextLines integration in ESM', () => {
1919
frames: expect.arrayContaining([
2020
{
2121
filename: '/suites/contextLines/filename-with-spaces/scenario with space.mjs',
22-
abs_path: expect.stringContaining('/dev-packages/node-integration-tests/suites/contextLines/filename-with-spaces/scenario with space.mjs'),
22+
abs_path: expect.stringContaining(
23+
'/dev-packages/node-integration-tests/suites/contextLines/filename-with-spaces/scenario with space.mjs',
24+
),
2325
context_line: "Sentry.captureException(new Error('Test Error'));",
2426
pre_context: ["import * as Sentry from '@sentry/node';", ''],
2527
post_context: ['', '// some more post context'],
@@ -56,7 +58,9 @@ describe('ContextLines integration in CJS', () => {
5658
frames: expect.arrayContaining([
5759
{
5860
filename: '/suites/contextLines/filename-with-spaces/scenario with space.cjs',
59-
abs_path: expect.stringContaining('/dev-packages/node-integration-tests/suites/contextLines/filename-with-spaces/scenario with space.cjs'),
61+
abs_path: expect.stringContaining(
62+
'/dev-packages/node-integration-tests/suites/contextLines/filename-with-spaces/scenario with space.cjs',
63+
),
6064
context_line: "Sentry.captureException(new Error('Test Error'));",
6165
pre_context: [
6266
'',

dev-packages/node-integration-tests/suites/public-api/captureException/catched-error/test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ test('should work inside catch block', async () => {
2222
frames: expect.arrayContaining([
2323
expect.objectContaining({
2424
filename: '/suites/public-api/captureException/catched-error/scenario.ts',
25-
abs_path: expect.stringContaining('/dev-packages/node-integration-tests/suites/public-api/captureException/catched-error/scenario.ts'),
25+
abs_path: expect.stringContaining(
26+
'/dev-packages/node-integration-tests/suites/public-api/captureException/catched-error/scenario.ts',
27+
),
2628
context_line: " throw new Error('catched_error');",
2729
pre_context: [
2830
'Sentry.init({',

dev-packages/node-integration-tests/suites/public-api/captureException/simple-error/test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ test('should capture a simple error with message', async () => {
2222
frames: expect.arrayContaining([
2323
expect.objectContaining({
2424
filename: '/suites/public-api/captureException/simple-error/scenario.ts',
25-
abs_path: expect.stringContaining('/dev-packages/node-integration-tests/suites/public-api/captureException/simple-error/scenario.ts'),
25+
abs_path: expect.stringContaining(
26+
'/dev-packages/node-integration-tests/suites/public-api/captureException/simple-error/scenario.ts',
27+
),
2628
}),
2729
]),
2830
},

packages/sveltekit/test/server-common/rewriteFramesIntegration.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ describe('rewriteFramesIteratee', () => {
4545

4646
expect(result.exception?.values?.[0]?.stacktrace?.frames?.[0]).toEqual({
4747
filename: 'app:///3-ab34d22f.js',
48+
abs_path: '/some/path/to/server/chunks/3-ab34d22f.js',
4849
lineno: 1,
4950
colno: 1,
5051
});

0 commit comments

Comments
 (0)