Skip to content

Commit fba0e10

Browse files
committed
update tests
1 parent c5ede14 commit fba0e10

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

dev-packages/node-integration-tests/suites/modules/test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { SDK_VERSION } from '@sentry/core';
22
import { join } from 'path';
3-
import { afterAll, describe, test } from 'vitest';
3+
import { afterAll, describe, expect, test } from 'vitest';
44
import { cleanupChildProcesses, createRunner } from '../../utils/runner';
55

66
describe('modulesIntegration', () => {
@@ -15,7 +15,7 @@ describe('modulesIntegration', () => {
1515
event: {
1616
modules: {
1717
// exact version comes from require.caches
18-
express: '4.21.1',
18+
express: expect.stringMatching(/^4\.\d+\.\d+$/),
1919
// this comes from package.json
2020
'@sentry/node': SDK_VERSION,
2121
yargs: '^16.2.0',
@@ -35,7 +35,7 @@ describe('modulesIntegration', () => {
3535
event: {
3636
modules: {
3737
// this comes from package.json
38-
express: '^4.21.1',
38+
express: expect.stringMatching(/^\^4\.\d+\.\d+$/),
3939
'@sentry/node': SDK_VERSION,
4040
yargs: '^16.2.0',
4141
},

0 commit comments

Comments
 (0)