Skip to content

Commit 042a4f2

Browse files
committed
chore: fix linter issues
1 parent 248a229 commit 042a4f2

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

tests/integration/tools/mongodb/mongodbHelpers.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ export function describeWithMongoDB(
7272
downloadOptions: MongoClusterOptions["downloadOptions"] | MongoSearchConfiguration = { enterprise: false },
7373
serverArgs: string[] = []
7474
): void {
75-
describe(name, ({ skipIf }) => {
76-
skipIf(!isMongoDBEnvSupported(downloadOptions));
75+
describe.skipIf(!isMongoDBEnvSupported(downloadOptions))(name, () => {
7776
const mdbIntegration = setupMongoDBIntegrationTest(downloadOptions, serverArgs);
7877
const integration = setupIntegrationTest(
7978
() => ({
@@ -112,7 +111,9 @@ function isTestContainersCluster(
112111
return !!(cluster as StartedTestContainer)?.stop;
113112
}
114113

115-
function isMongoDBEnvSupported(downloadOptions: MongoClusterOptions["downloadOptions"] | MongoSearchConfiguration) {
114+
function isMongoDBEnvSupported(
115+
downloadOptions: MongoClusterOptions["downloadOptions"] | MongoSearchConfiguration
116+
): boolean {
116117
if (isSearchOptions(downloadOptions)) {
117118
try {
118119
execSync("docker --version");

tests/integration/tools/mongodb/search/listSearchIndexes.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describeWithMongoDB, getSingleDocFromUntrustedContent } from "../mongodbHelpers.js";
2-
import { describe, it, expect, beforeEach, beforeAll, afterAll } from "vitest";
2+
import { describe, it, expect, beforeEach } from "vitest";
33
import {
44
getResponseContent,
55
databaseCollectionParameters,
@@ -123,7 +123,7 @@ async function waitUntilSearchIsReady(provider: NodeDriverServiceProvider, abort
123123
}
124124

125125
if (!success) {
126-
throw new Error(`Search Management Index is not ready.\nlastError: ${lastError}`);
126+
throw new Error(`Search Management Index is not ready.\nlastError: ${JSON.stringify(lastError)}`);
127127
}
128128
}
129129

@@ -155,7 +155,9 @@ async function waitUntilIndexIsQueryable(
155155

156156
if (!success) {
157157
throw new Error(
158-
`Index ${indexName} in ${database}.${collection} is not ready: \nlastIndexStatus: ${JSON.stringify(lastIndexStatus)}\nlastError: ${lastError}`
158+
`Index ${indexName} in ${database}.${collection} is not ready:
159+
lastIndexStatus: ${JSON.stringify(lastIndexStatus)}
160+
lastError: ${JSON.stringify(lastError)}`
159161
);
160162
}
161163
}

0 commit comments

Comments
 (0)