Skip to content

Commit 1bf65a7

Browse files
committed
fix node-core tests for node 26
1 parent 3838604 commit 1bf65a7

7 files changed

Lines changed: 14 additions & 14 deletions

File tree

  • dev-packages/node-core-integration-tests/suites

dev-packages/node-core-integration-tests/suites/child-process/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ const CHILD_EVENT: Event = {
3030
},
3131
],
3232
},
33-
breadcrumbs: [
33+
breadcrumbs: expect.arrayContaining([
3434
{
3535
category: 'child_process',
3636
message: "Child process exited with code '1'",
3737
level: 'warning',
3838
},
39-
],
39+
]),
4040
};
4141

4242
describe('should capture child process events', () => {

dev-packages/node-core-integration-tests/suites/tracing/requests/fetch-breadcrumbs/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('outgoing fetch', () => {
1313
.withEnv({ SERVER_URL })
1414
.expect({
1515
event: {
16-
breadcrumbs: [
16+
breadcrumbs: expect.arrayContaining([
1717
{
1818
message: 'manual breadcrumb',
1919
timestamp: expect.any(Number),
@@ -62,7 +62,7 @@ describe('outgoing fetch', () => {
6262
timestamp: expect.any(Number),
6363
type: 'http',
6464
},
65-
],
65+
]),
6666
exception: {
6767
values: [
6868
{

dev-packages/node-core-integration-tests/suites/tracing/requests/fetch-no-trace-propagation/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('outgoing fetch with tracePropagation disabled', () => {
2222
.withEnv({ SERVER_URL })
2323
.expect({
2424
event: {
25-
breadcrumbs: [
25+
breadcrumbs: expect.arrayContaining([
2626
{
2727
message: 'manual breadcrumb',
2828
timestamp: expect.any(Number),
@@ -47,7 +47,7 @@ describe('outgoing fetch with tracePropagation disabled', () => {
4747
timestamp: expect.any(Number),
4848
type: 'http',
4949
},
50-
],
50+
]),
5151
exception: {
5252
values: [
5353
{

dev-packages/node-core-integration-tests/suites/tracing/requests/http-breadcrumbs/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('outgoing http', () => {
1111
.withEnv({ SERVER_URL })
1212
.expect({
1313
event: {
14-
breadcrumbs: [
14+
breadcrumbs: expect.arrayContaining([
1515
{
1616
message: 'manual breadcrumb',
1717
timestamp: expect.any(Number),
@@ -60,7 +60,7 @@ describe('outgoing http', () => {
6060
timestamp: expect.any(Number),
6161
type: 'http',
6262
},
63-
],
63+
]),
6464
exception: {
6565
values: [
6666
{

dev-packages/node-core-integration-tests/suites/tracing/requests/http-no-trace-propagation/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('outgoing http with tracePropagation disabled', () => {
2222
.withEnv({ SERVER_URL })
2323
.expect({
2424
event: {
25-
breadcrumbs: [
25+
breadcrumbs: expect.arrayContaining([
2626
{
2727
message: 'manual breadcrumb',
2828
timestamp: expect.any(Number),
@@ -47,7 +47,7 @@ describe('outgoing http with tracePropagation disabled', () => {
4747
timestamp: expect.any(Number),
4848
type: 'http',
4949
},
50-
],
50+
]),
5151
exception: {
5252
values: [
5353
{

dev-packages/node-core-integration-tests/suites/tracing/requests/http-no-tracing-no-spans/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('outgoing http requests with tracing & spans disabled', () => {
4040
},
4141
],
4242
},
43-
breadcrumbs: [
43+
breadcrumbs: expect.arrayContaining([
4444
{
4545
message: 'manual breadcrumb',
4646
timestamp: expect.any(Number),
@@ -89,7 +89,7 @@ describe('outgoing http requests with tracing & spans disabled', () => {
8989
timestamp: expect.any(Number),
9090
type: 'http',
9191
},
92-
],
92+
]),
9393
},
9494
})
9595
.start()

dev-packages/node-core-integration-tests/suites/tracing/requests/http-no-tracing/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('outgoing http', () => {
4242
},
4343
],
4444
},
45-
breadcrumbs: [
45+
breadcrumbs: expect.arrayContaining([
4646
{
4747
message: 'manual breadcrumb',
4848
timestamp: expect.any(Number),
@@ -91,7 +91,7 @@ describe('outgoing http', () => {
9191
timestamp: expect.any(Number),
9292
type: 'http',
9393
},
94-
],
94+
]),
9595
},
9696
})
9797
.start()

0 commit comments

Comments
 (0)