Skip to content

Commit 522949a

Browse files
committed
fix tests
1 parent f5f595e commit 522949a

File tree

8 files changed

+15
-19
lines changed

8 files changed

+15
-19
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"postpublish": "lerna run --stream --concurrency 1 postpublish",
3434
"test": "lerna run --ignore \"@sentry-internal/{browser-integration-tests,e2e-tests,integration-shims,node-integration-tests,overhead-metrics}\" test",
3535
"test:unit": "lerna run --ignore \"@sentry-internal/{browser-integration-tests,e2e-tests,integration-shims,node-integration-tests,overhead-metrics}\" test:unit",
36-
"test-ci-browser": "lerna run test --ignore \"@sentry/{bun,deno,node,node-experimental,profiling-node,serverless,nextjs,remix,gatsby,sveltekit,vercel-edge}\" --ignore \"@sentry-internal/{browser-integration-tests,e2e-tests,integration-shims,node-integration-tests,overhead-metrics}\"",
36+
"test-ci-browser": "lerna run test --ignore \"@sentry/{bun,deno,node,node-experimental,profiling-node,serverless,google-cloud,nextjs,remix,gatsby,sveltekit,vercel-edge}\" --ignore \"@sentry-internal/{browser-integration-tests,e2e-tests,integration-shims,node-integration-tests,overhead-metrics}\"",
3737
"test-ci-node": "ts-node ./scripts/node-unit-tests.ts",
3838
"test-ci-bun": "lerna run test --scope @sentry/bun",
3939
"test:update-snapshots": "lerna run test:update-snapshots",

packages/google-cloud/src/sdk.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import type { NodeOptions } from '@sentry/node';
2-
import {
3-
SDK_VERSION,
4-
getDefaultIntegrations as getDefaultNodeIntegrations,
5-
init as initNode,
6-
} from '@sentry/node';
2+
import { SDK_VERSION, getDefaultIntegrations as getDefaultNodeIntegrations, init as initNode } from '@sentry/node';
73
import type { Integration, Options, SdkMetadata } from '@sentry/types';
84

95
import { googleCloudGrpcIntegration } from './integrations/google-cloud-grpc';

packages/google-cloud/test/gcpfunction/cloud_event.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const mockSpan = {
1616
end: jest.fn(),
1717
};
1818

19-
jest.mock('@sentry/node-experimental', () => {
20-
const original = jest.requireActual('@sentry/node-experimental');
19+
jest.mock('@sentry/node', () => {
20+
const original = jest.requireActual('@sentry/node');
2121
return {
2222
...original,
2323
startSpanManual: (...args: unknown[]) => {

packages/google-cloud/test/gcpfunction/events.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const mockSpan = {
1717
end: jest.fn(),
1818
};
1919

20-
jest.mock('@sentry/node-experimental', () => {
21-
const original = jest.requireActual('@sentry/node-experimental');
20+
jest.mock('@sentry/node', () => {
21+
const original = jest.requireActual('@sentry/node');
2222
return {
2323
...original,
2424
startSpanManual: (...args: unknown[]) => {

packages/google-cloud/test/gcpfunction/http.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ const mockSpan = {
2323
end: jest.fn(),
2424
};
2525

26-
jest.mock('@sentry/node-experimental', () => {
27-
const original = jest.requireActual('@sentry/node-experimental');
26+
jest.mock('@sentry/node', () => {
27+
const original = jest.requireActual('@sentry/node');
2828
return {
2929
...original,
3030
init: (options: unknown) => {

packages/google-cloud/test/integrations/google-cloud-grpc.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ import * as http2 from 'http2';
99
import * as nock from 'nock';
1010

1111
import { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';
12-
import { NodeClient, createTransport, setCurrentClient } from '@sentry/node-experimental';
12+
import { NodeClient, createTransport, setCurrentClient } from '@sentry/node';
1313
import { googleCloudGrpcIntegration } from '../../src/integrations/google-cloud-grpc';
1414

1515
const spyConnect = jest.spyOn(http2, 'connect');
1616

1717
const mockSpanEnd = jest.fn();
1818
const mockStartInactiveSpan = jest.fn(spanArgs => ({ ...spanArgs }));
1919

20-
jest.mock('@sentry/node-experimental', () => {
20+
jest.mock('@sentry/node', () => {
2121
return {
22-
...jest.requireActual('@sentry/node-experimental'),
22+
...jest.requireActual('@sentry/node'),
2323
startInactiveSpan: (ctx: unknown) => {
2424
mockStartInactiveSpan(ctx);
2525
return { end: mockSpanEnd };

packages/google-cloud/test/integrations/google-cloud-http.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import { googleCloudHttpIntegration } from '../../src/integrations/google-cloud-
1010
const mockSpanEnd = jest.fn();
1111
const mockStartInactiveSpan = jest.fn(spanArgs => ({ ...spanArgs }));
1212

13-
jest.mock('@sentry/node-experimental', () => {
13+
jest.mock('@sentry/node', () => {
1414
return {
15-
...jest.requireActual('@sentry/node-experimental'),
15+
...jest.requireActual('@sentry/node'),
1616
startInactiveSpan: (ctx: unknown) => {
1717
mockStartInactiveSpan(ctx);
1818
return { end: mockSpanEnd };

packages/google-cloud/test/sdk.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { init } from '../src/sdk';
22

33
const mockInit = jest.fn();
44

5-
jest.mock('@sentry/node-experimental', () => {
6-
const original = jest.requireActual('@sentry/node-experimental');
5+
jest.mock('@sentry/node', () => {
6+
const original = jest.requireActual('@sentry/node');
77
return {
88
...original,
99
init: (options: unknown) => {

0 commit comments

Comments
 (0)