Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11,755 changes: 3,877 additions & 7,878 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,25 @@
"lint": "eslint --fix package.json \"packages/**/*.ts\"",
"lint:ci": "eslint package.json \"${WORKSPACE_PATH}/**/*.ts\" --max-warnings=0",
"update-deps": "npm-check-updates --workspaces --root -u",
"validate-engine": "ls-engines",
"check-compiles": "npm run build --ignore-scripts --ws -- --project tsconfig.json --noEmit"
},
"devDependencies": {
"@eslint/js": "^9.39.2",
"@eslint/json": "^0.14.0",
"@vitest/coverage-v8": "^3.2.4",
"eslint": "^9.39.2",
"@eslint/js": "^10.0.1",
"@eslint/json": "^1.0.1",
"@vitest/coverage-v8": "^4.0.18",
"eslint": "^10.0.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.5",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"ls-engines": "^0.9.4",
"npm-check-updates": "^19.3.2",
"prettier": "^3.8.1",
"prettier-plugin-organize-imports": "^4.3.0",
"shx": "^0.4.0",
"ts-node": "^10.9.2",
"typescript": "^5.9.3",
"typescript-eslint": "^8.54.0",
"vitest": "^3.2.4"
"typescript-eslint": "^8.56.0",
"vitest": "^4.0.18"
},
"lint-staged": {
"packages/**/*.ts": [
Expand Down
4 changes: 2 additions & 2 deletions packages/modules/azurite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"devDependencies": {
"@azure/data-tables": "^13.3.2",
"@azure/storage-blob": "^12.29.1",
"@azure/storage-queue": "^12.28.1"
"@azure/storage-blob": "12.29.1",
"@azure/storage-queue": "12.28.1"
}
}
2 changes: 1 addition & 1 deletion packages/modules/chromadb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"devDependencies": {
"@chroma-core/default-embed": "^0.1.9",
"@chroma-core/ollama": "^0.1.8",
"chromadb": "^3.2.2"
"chromadb": "^3.3.0"
},
"dependencies": {
"testcontainers": "^11.11.0"
Expand Down
8 changes: 4 additions & 4 deletions packages/modules/couchbase/src/couchbase-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ export class CouchbaseContainer extends GenericContainer {
...(auth ? { Authorization: `Basic ${btoa(this.username + ":" + this.password)}` } : {}),
},
});
} catch (e) {
throw new Error(`Could not perform request against couchbase HTTP endpoint ${e}`);
} catch (cause) {
throw new Error("Could not perform request against couchbase HTTP endpoint", { cause });
}
}

Expand Down Expand Up @@ -192,8 +192,8 @@ export class CouchbaseContainer extends GenericContainer {
let jsonResponse;
try {
jsonResponse = (await response.json()) as { isEnterprise: boolean };
} catch (e) {
throw new Error("Couchbase /pools did not return valid JSON");
} catch (cause) {
throw new Error("Couchbase /pools did not return valid JSON", { cause });
}

this.isEnterprise = jsonResponse.isEnterprise;
Expand Down
2 changes: 1 addition & 1 deletion packages/modules/elasticsearch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"build": "tsc --project tsconfig.build.json"
},
"devDependencies": {
"@elastic/elasticsearch": "^9.3.0"
"@elastic/elasticsearch": "^9.3.1"
},
"dependencies": {
"testcontainers": "^11.11.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/modules/gcloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
},
"devDependencies": {
"@google-cloud/bigquery": "^8.1.1",
"@google-cloud/datastore": "^9.2.1",
"@google-cloud/datastore": "^10.1.0",
"@google-cloud/firestore": "8.3.0",
"@google-cloud/pubsub": "^5.2.2",
"@google-cloud/pubsub": "^5.2.3",
"@google-cloud/spanner": "^8.6.0",
"@google-cloud/storage": "^7.19.0",
"firebase-admin": "13.6.1",
"msw": "^2.12.9"
"msw": "^2.12.10"
}
}
2 changes: 1 addition & 1 deletion packages/modules/localstack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"testcontainers": "^11.11.0"
},
"devDependencies": {
"@aws-sdk/client-s3": "^3.985.0"
"@aws-sdk/client-s3": "^3.990.0"
}
}
2 changes: 1 addition & 1 deletion packages/modules/mongodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"build": "tsc --project tsconfig.build.json"
},
"devDependencies": {
"mongoose": "^9.1.6"
"mongoose": "^9.2.1"
},
"dependencies": {
"compare-versions": "^6.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/modules/mysql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"build": "tsc --project tsconfig.build.json"
},
"devDependencies": {
"mysql2": "^3.16.3"
"mysql2": "^3.17.1"
},
"dependencies": {
"testcontainers": "^11.11.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/modules/nats/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"testcontainers": "^11.11.0"
},
"devDependencies": {
"@nats-io/jetstream": "^3.3.0",
"@nats-io/transport-node": "^3.3.0"
"@nats-io/jetstream": "^3.3.1",
"@nats-io/transport-node": "^3.3.1"
}
}
2 changes: 1 addition & 1 deletion packages/modules/s3mock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"testcontainers": "^11.11.0"
},
"devDependencies": {
"@aws-sdk/client-s3": "^3.985.0"
"@aws-sdk/client-s3": "^3.990.0"
}
}
2 changes: 1 addition & 1 deletion packages/testcontainers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"ssh-remote-port-forward": "^1.0.4",
"tar-fs": "^3.1.1",
"tmp": "^0.2.5",
"undici": "^7.21.0"
"undici": "^7.22.0"
},
"devDependencies": {
"@types/archiver": "^7.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ import Dockerode from "dockerode";
import { ImageName } from "../image-name";

const mockImageInspect = vi.fn();

vi.mock("dockerode", () => {
return {
default: vi.fn(() => ({
getImage: () => ({
inspect: mockImageInspect,
}),
})),
default: vi.fn(function DockerodeMock() {
return {
getImage: () => ({
inspect: mockImageInspect,
}),
};
}),
};
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@ vi.mock("fs", () => ({

const mockInspectNetwork = vi.fn();
const mockGetNetwork = vi.fn();

vi.mock("dockerode", () => {
return {
default: vi.fn(() => ({
getNetwork: (...args: unknown[]) => {
mockGetNetwork.mockImplementation(() => ({
inspect: mockInspectNetwork,
}));
return mockGetNetwork(...args);
},
})),
default: vi.fn(function DockerodeMock() {
return {
getNetwork: (...args: unknown[]) => {
mockGetNetwork.mockImplementation(() => ({
inspect: mockInspectNetwork,
}));
return mockGetNetwork(...args);
},
};
}),
};
});

Expand Down
4 changes: 4 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ export default defineConfig({
alias: {
testcontainers: path.resolve(__dirname, "packages/testcontainers/src"),
},
coverage: {
include: ["packages/**/*.ts"],
exclude: ["**/*.test.ts"],
},
},
});
Loading