test(sio): pin version of the client bundle in the tests

This commit is contained in:
Damien Arrachequesne
2025-12-22 17:17:09 +01:00
parent fd9d4cab5e
commit 161be91975
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ import { getPort, successFn } from "./support/util";
describe("server attachment", () => {
describe("http.Server", () => {
const clientVersion = require("socket.io-client/package.json").version;
const clientVersion = require("../package.json").version;
const testSource = (filename) => (done) => {
const srv = createServer();

View File

@@ -229,7 +229,7 @@ describe("socket.io with uWebSocket.js-based engine", () => {
});
it("should serve static files", (done) => {
const clientVersion = require("socket.io-client/package.json").version;
const clientVersion = require("../package.json").version;
request(`http://localhost:${port}`)
.get("/socket.io/socket.io.js")