Remove global credentials attempt, didn't work.

This commit is contained in:
Sam Rose 2025-03-04 10:26:53 +00:00
parent 9ada43371e
commit 9cbef46512
No known key found for this signature in database
2 changed files with 0 additions and 12 deletions

View File

@ -3,12 +3,6 @@ import * as matchers from "jest-extended"
import { env as coreEnv, timers } from "@budibase/backend-core"
import { testContainerUtils } from "@budibase/backend-core/tests"
import nock from "nock"
import AWS from "aws-sdk"
// Prevent accidental use of real AWS credentials
AWS.config.update({
credentialProvider: new AWS.CredentialProviderChain([]),
})
expect.extend(matchers)
if (!process.env.CI) {

View File

@ -2,17 +2,11 @@ import { mocks, testContainerUtils } from "@budibase/backend-core/tests"
import env from "../environment"
import { env as coreEnv, timers } from "@budibase/backend-core"
import nock from "nock"
import AWS from "aws-sdk"
// mock all dates to 2020-01-01T00:00:00.000Z
// use tk.reset() to use real dates in individual tests
import tk from "timekeeper"
// Prevent accidental use of real AWS credentials
AWS.config.update({
credentialProvider: new AWS.CredentialProviderChain([]),
})
nock.disableNetConnect()
nock.enableNetConnect(host => {
return (