Skip to content

Commit 14594f2

Browse files
Tidy up imports
1 parent 6624fd2 commit 14594f2

File tree

8 files changed

+15
-17
lines changed

8 files changed

+15
-17
lines changed

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { CosmosClient, PartitionKeyKind } from "@azure/cosmos";
2-
import * as https from "node:https";
3-
import { expect } from "vitest";
2+
import https from "node:https";
43
import { AzureCosmosDbEmulatorContainer } from "./azure-cosmosdb-emulator-container";
54

65
describe("AzureCosmosDbEmulatorContainer", { timeout: 180_000 }, async () => {

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import * as couchbase from "couchbase";
2-
import { Bucket, Cluster } from "couchbase";
1+
import couchbase, { Bucket, Cluster } from "couchbase";
32
import { BucketDefinition } from "./bucket-definition";
43
import { CouchbaseContainer, StartedCouchbaseContainer } from "./couchbase-container";
54
import { CouchbaseService } from "./couchbase-service";

packages/modules/gcloud/src/firestore-emulator-container.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as admin from "firebase-admin";
1+
import admin from "firebase-admin";
22
import { FirestoreEmulatorContainer, StartedFirestoreEmulatorContainer } from "./firestore-emulator-container";
33

44
describe("FirestoreEmulatorContainer", { timeout: 240_000 }, () => {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as k8s from "@kubernetes/client-node";
1+
import k8s from "@kubernetes/client-node";
22
import { setTimeout } from "node:timers/promises";
33
import { GenericContainer, Network, Wait } from "testcontainers";
44
import { K3sContainer } from "./k3s-container";

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as fs from "fs";
1+
import fs from "fs";
22
import { Kafka, KafkaConfig, logLevel } from "kafkajs";
3-
import * as path from "path";
3+
import path from "path";
44
import { GenericContainer, Network, StartedTestContainer } from "testcontainers";
55
import { KafkaContainer, KAFKA_IMAGE } from "./kafka-container";
66

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import * as Minio from "minio";
1+
import minio from "minio";
22
import { MinioContainer } from "./minio-container";
33

44
describe("MinIO", { timeout: 240_000 }, () => {
55
// connectWithDefaultCredentials {
66
it("should connect and upload a file", async () => {
77
const container = await new MinioContainer().start();
88

9-
const minioClient = new Minio.Client({
9+
const minioClient = new minio.Client({
1010
endPoint: container.getHost(),
1111
port: container.getPort(),
1212
useSSL: false,
@@ -36,7 +36,7 @@ describe("MinIO", { timeout: 240_000 }, () => {
3636
it("should work with custom credentials", async () => {
3737
const container = await new MinioContainer().withUsername("AzureDiamond").withPassword("hunter2!").start();
3838

39-
const minioClient = new Minio.Client({
39+
const minioClient = new minio.Client({
4040
endPoint: container.getHost(),
4141
port: container.getPort(),
4242
useSSL: false,

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as fs from "fs";
2-
import * as os from "os";
3-
import * as path from "path";
1+
import fs from "fs";
2+
import os from "os";
3+
import path from "path";
44
import { createClient } from "redis";
55
import { RedisContainer, StartedRedisContainer } from "./redis-container";
66

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as fs from "fs";
2-
import * as os from "os";
3-
import * as path from "path";
1+
import fs from "fs";
2+
import os from "os";
3+
import path from "path";
44
import { createClient } from "redis";
55
import { StartedValkeyContainer, ValkeyContainer } from "./valkey-container";
66

0 commit comments

Comments
 (0)