Skip to content

Commit

Permalink
chore: add exchange test script and address test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ilikejames committed Jul 19, 2023
1 parent 8bc9756 commit caf55d2
Show file tree
Hide file tree
Showing 8 changed files with 131 additions and 269 deletions.
4 changes: 3 additions & 1 deletion packages/exchange/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@
"@types/ws": "^8.5.3",
"cross-env": "^7.0.3",
"isomorphic-ws": "^5.0.0",
"ts-node": "^10.4.0"
"ts-node": "^10.4.0",
"vitest": "^0.33.0"
},
"scripts": {
"build": "tsup-node --config ./tsup.config.ts",
"lint": "eslint --ext .tsx --ext .ts src/",
"test": "vitest --run",
"typecheck": "tsc --noEmit"
}
}
2 changes: 1 addition & 1 deletion packages/rest/fake-rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"@types/debug": "^4.1.7",
"@types/isomorphic-fetch": "^0.0.36",
"@types/uuid": "^8.3.4",
"vitest": "^0.29.8"
"vitest": "^0.33.0"
},
"scripts": {
"build": "tsup-node --config ./tsup.config.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/rest/test-fake-svc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"cross-env": "^7.0.3",
"ts-node": "^10.9.1",
"url": "^0.11.0",
"vitest": "^0.30.1"
"vitest": "^0.33.0"
},
"scripts": {
"start:fake": "cross-env NODE_OPTIONS='--experimental-specifier-resolution=node' TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true ts-node --esm src/start.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/signalr/fake-signalr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"cross-env": "^7.0.3",
"debug": "^4.3.4",
"rxjs": "^7.4.0",
"vitest": "^0.29.8"
"vitest": "^0.33.0"
},
"scripts": {
"build": "tsup-node --config ./tsup.config.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/signalr/signalr-test-fake-svc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@microsoft/signalr-protocol-msgpack": "^7.0.7",
"cross-env": "^7.0.3",
"rxjs": "^7.4.0",
"vitest": "^0.29.8"
"vitest": "^0.33.0"
},
"scripts": {
"build": "tsup-node src/index.ts --format cjs,esm --dts --sourcemap",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ for (const protocol of protocols) {
'test-username',
expect.anything(),
)
expect(typeof (onJoinConnection1 as any).calls[0][1]).toMatch(/string|object/)
expect(onJoinConnection2).toHaveBeenLastCalledWith(
'test-username',
expect.anything(),
Expand Down
2 changes: 1 addition & 1 deletion packages/state-emitter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"dependencies": {},
"devDependencies": {
"rxjs": "^7.8.0",
"vitest": "^0.29.8"
"vitest": "^0.33.0"
},
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts --sourcemap",
Expand Down
385 changes: 123 additions & 262 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit caf55d2

Please sign in to comment.