Skip to content

Commit f60ba18

Browse files
Fix compilation issues
1 parent 4da5869 commit f60ba18

File tree

5 files changed

+29
-7
lines changed

5 files changed

+29
-7
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// Features to add to the dev container. More info: https://containers.dev/features.
99
"features": {
1010
"ghcr.io/devcontainers/features/node:1": {
11-
"version": "22"
11+
"version": "24"
1212
},
1313
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
1414
},

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ jobs:
2424
2525
- name: Update versions
2626
run: |
27-
npm version ${{ github.event.release.tag_name }} -ws --allow-same-version
27+
npm version ${{ github.event.release.tag_name }} --ws --allow-same-version
2828
for module in packages/modules/*; do npm install testcontainers@${{ github.event.release.tag_name }} --save -w $module; done
2929
sed -i -E "s/(sonar.projectVersion)=.+/\1=${{ github.event.release.tag_name }}/" sonar-project.properties
3030
3131
- name: Build packages
3232
run: |
3333
npm ci --omit=optional
34-
npm run build -ws
34+
npm run build --ws
3535
3636
- name: Git commit and push
3737
run: |
3838
git commit -am "${{ github.event.release.tag_name }}"
3939
git push
4040
4141
- name: Publish packages to NPM
42-
run: npm publish -ws
42+
run: npm publish --ws
4343
env:
4444
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"lint:ci": "eslint package.json \"${WORKSPACE_PATH}/**/*.ts\" --max-warnings=0",
1717
"update-deps": "npm-check-updates --workspaces --root -u",
1818
"validate-engine": "ls-engines",
19-
"check-compiles": "npm run build --ignore-scripts -ws -- --project tsconfig.json --noEmit"
19+
"check-compiles": "npm run build --ignore-scripts --ws -- --project tsconfig.json --noEmit"
2020
},
2121
"devDependencies": {
2222
"@eslint/js": "^9.26.0",

packages/modules/elasticsearch/src/elasticsearch-container.test.ts

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,32 @@ describe("ElasticsearchContainer", { timeout: 180_000 }, () => {
2727
};
2828
await client.index({
2929
index: "people",
30-
body: document,
3130
id: document.id,
31+
document,
3232
});
3333

34+
/*
35+
body?: string | ({
36+
[key: string]: any;
37+
} & {
38+
id?: never;
39+
index?: never;
40+
if_primary_term?: never;
41+
if_seq_no?: never;
42+
include_source_on_error?: never;
43+
op_type?: never;
44+
pipeline?: never;
45+
refresh?: never;
46+
routing?: never;
47+
timeout?: never;
48+
version?: never;
49+
version_type?: never;
50+
wait_for_active_shards?: never;
51+
require_alias?: never;
52+
document?: never;
53+
})
54+
*/
55+
3456
expect((await client.get({ index: "people", id: document.id }))._source).toStrictEqual(document);
3557
await container.stop();
3658
});

packages/testcontainers/src/generic-container/generic-container-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class GenericContainerBuilder {
8989
};
9090

9191
if (this.pullPolicy.shouldPull()) {
92-
buildOptions.pull = "true";
92+
buildOptions.pull = true;
9393
}
9494

9595
await client.image.build(this.context, buildOptions);

0 commit comments

Comments
 (0)