File tree Expand file tree Collapse file tree
ghost/core/test/integration/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- const assert = require ( 'node:assert/strict' ) ;
2- const {
1+ import assert from 'node:assert/strict' ;
2+ import {
33 createTestS3Client ,
44 createTestBucket ,
55 emptyTestBucket ,
66 deleteTestBucket ,
77 putObject ,
88 getObject ,
99 deleteObject
10- } = require ( '../../utils/minio' ) ;
10+ } from '../../utils/minio' ;
11+ import type { S3Client } from '@aws-sdk/client-s3' ;
1112
1213// Skip when MinIO is unreachable. The flag is set by the integration
1314// globalSetup (vitest-globalsetup-services.ts), which probes MinIO once before
1415// the forks spawn.
1516describe . skipIf ( process . env . GHOST_TEST_MINIO_AVAILABLE !== '1' ) ( 'Integration: MinIO test helper' , function ( ) {
16- let client ;
17- let bucket ;
17+ let client : S3Client ;
18+ let bucket : string ;
1819
1920 beforeAll ( async function ( ) {
2021 client = createTestS3Client ( ) ;
You can’t perform that action at this time.
0 commit comments