Skip to content

Commit 29ebce9

Browse files
authored
TypeScriptify MinIO integration tests (#29122)
no ref
1 parent dea7273 commit 29ebce9

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

ghost/core/test/integration/utils/minio.test.js renamed to ghost/core/test/integration/utils/minio.test.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
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.
1516
describe.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();

0 commit comments

Comments
 (0)