@@ -6,17 +6,17 @@ import { WeaviateContainer } from "./weaviate-container";
66const IMAGE = getImage ( __dirname ) ;
77
88describe ( "WeaviateContainer" , { timeout : 100_000 } , ( ) => {
9- // connectWeaviate {
109 it ( "should expose ports" , async ( ) => {
10+ // connectWeaviate {
1111 await using container = await new WeaviateContainer ( IMAGE ) . start ( ) ;
1212
1313 expect ( container . getHttpHostAddress ( ) ) . toBeDefined ( ) ;
1414 expect ( container . getGrpcHostAddress ( ) ) . toBeDefined ( ) ;
15+ // }
1516 } ) ;
16- // }
1717
18- // connectWeaviateWithClient {
1918 it ( "should connect to Weaviate" , async ( ) => {
19+ // connectWeaviateWithClient {
2020 await using container = await new WeaviateContainer ( IMAGE ) . start ( ) ;
2121
2222 const client = weaviate . client ( {
@@ -26,11 +26,11 @@ describe("WeaviateContainer", { timeout: 100_000 }, () => {
2626
2727 const res = await client . misc . metaGetter ( ) . do ( ) ;
2828 expect ( res . version ) . toBeDefined ( ) ;
29+ // }
2930 } ) ;
30- // }
3131
32- // connectWeaviateWithModules {
3332 it ( "should connect to Weaviate with modules" , async ( ) => {
33+ // connectWeaviateWithModules {
3434 const enableModules = [
3535 "backup-filesystem" ,
3636 "text2vec-openai" ,
@@ -42,6 +42,7 @@ describe("WeaviateContainer", { timeout: 100_000 }, () => {
4242 ENABLE_MODULES : enableModules . join ( "," ) ,
4343 BACKUP_FILESYSTEM_PATH : "/tmp/backups" ,
4444 } ;
45+
4546 await using container = await new WeaviateContainer ( IMAGE ) . withEnvironment ( environment ) . start ( ) ;
4647
4748 const client = weaviate . client ( {
@@ -52,9 +53,7 @@ describe("WeaviateContainer", { timeout: 100_000 }, () => {
5253 const res = await client . misc . metaGetter ( ) . do ( ) ;
5354 expect ( res . version ) . toBeDefined ( ) ;
5455 expect ( res . modules ) . toBeDefined ( ) ;
55- enableModules . forEach ( ( module ) => {
56- expect ( res . modules [ module ] ) . toBeDefined ( ) ;
57- } ) ;
56+ enableModules . forEach ( ( module ) => expect ( res . modules [ module ] ) . toBeDefined ( ) ) ;
57+ // }
5858 } ) ;
59- // }
6059} ) ;
0 commit comments