Skip to content

Commit

Permalink
fix tav
Browse files Browse the repository at this point in the history
  • Loading branch information
mottibec committed Nov 22, 2022
1 parent c5b54d5 commit 8542060
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions plugins/node/instrumentation-socket.io/.tav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
- versions: "2.1.1 || 2.2.0 || 2.3.0 || 2.4.0 || ^2.5.0"
peerDependencies: socket.io-client@^2
commands:
- yarn test
- npm run test

- versions: "^3.1.3"
peerDependencies: socket.io-client@^3
commands:
- yarn test
- npm run test

- versions: "4.4.1 || 4.5.1 || 4.5.2 || ^4.5.3"
peerDependencies: socket.io-client@^4
commands:
- yarn test
- npm run test
3 changes: 1 addition & 2 deletions plugins/node/instrumentation-socket.io/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ import * as socketIo from 'socket.io';
import * as ioClient from 'socket.io-client';
import * as path from 'path';

export const io = (ioClient.io ||
(ioClient as any).default) as typeof ioClient.io;
export const io = ioClient.io || ioClient;

const packageJsonPath = (packageName: string) =>
path.join(path.dirname(require.resolve(packageName)), '..', 'package.json');
Expand Down

0 comments on commit 8542060

Please sign in to comment.