From ba50486d6b457a4ae5686cabf6317c479258beec Mon Sep 17 00:00:00 2001 From: prakashsvmx Date: Mon, 22 May 2023 22:18:35 +0530 Subject: [PATCH] try with jsconf --- tests/functional/functional-tests.js | 12 +++++++----- tests/functional/jsconfig.json | 5 +++++ 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 tests/functional/jsconfig.json diff --git a/tests/functional/functional-tests.js b/tests/functional/functional-tests.js index 65d5eb05..45ab9be6 100644 --- a/tests/functional/functional-tests.js +++ b/tests/functional/functional-tests.js @@ -25,20 +25,22 @@ import * as url from 'node:url' import async from 'async' import chai from 'chai' import _ from 'lodash' +import { AssumeRoleProvider } from 'minio/dist/main/AssumeRoleProvider.js' +import { CopyDestinationOptions, CopySourceOptions, DEFAULT_REGION } from 'minio/dist/main/helpers.js' +import * as minio from 'minio/dist/main/minio.js' import { step } from 'mocha-steps' import splitFile from 'split-file' import superagent from 'superagent' import * as uuid from 'uuid' -import { AssumeRoleProvider } from '../../src/AssumeRoleProvider.ts' -import { CopyDestinationOptions, CopySourceOptions, DEFAULT_REGION } from '../../src/helpers.ts' -import { getVersionId } from '../../src/internal/helper.ts' -import * as minio from '../../src/minio.js' - const assert = chai.assert const isWindowsPlatform = process.platform === 'win32' +function getVersionId(headers = {}) { + return headers['x-amz-version-id'] || null +} + describe('functional tests', function () { this.timeout(30 * 60 * 1000) var clientConfigParams = {} diff --git a/tests/functional/jsconfig.json b/tests/functional/jsconfig.json new file mode 100644 index 00000000..efbfd9f3 --- /dev/null +++ b/tests/functional/jsconfig.json @@ -0,0 +1,5 @@ +{ + "moduleResolution": "classic", + "allowSyntheticDefaultImports": true, + "exclude": ["dist/**/*", "node_modules/**/*"] +} \ No newline at end of file