Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"build:all": "yarn build:crypto-dependencies && lerna run build",
"build-documentation": "yarn remove-documentation && typedoc",
"pretest:all": "yarn build:all",
"test:all": "jest --coverage --passWithNoTests && lerna run test --scope '@aws-sdk/{fetch-http-handler,hash-blob-browser}' && yarn test:versions",
"test:all": "lerna run test && yarn test:versions",
"test:functional": "jest --config tests/functional/jest.config.js",
"test:integration:legacy": "cucumber-js --fail-fast",
"test:integration:legacy:since:release": "./tests/integ-legacy/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/eventstream-marshaller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest --coverage"
"test": "jest"
},
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/eventstream-serde-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest"
"test": "jest --passWithNoTests"
},
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/eventstream-serde-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest"
"test": "jest --passWithNoTests"
},
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/fetch-http-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest --coverage && karma start karma.conf.js"
"test": "jest && karma start karma.conf.js"
},
"author": {
"name": "AWS SDK for JavaScript Team",
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware-apply-body-checksum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest --coverage"
"test": "jest "
},
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware-content-length/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest"
"test": "jest --passWithNoTests"
},
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware-eventstream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest"
"test": "jest --passWithNoTests"
},
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware-sdk-sts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest"
"test": "jest --passWithNoTests"
},
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/node-http-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest --coverage"
"test": "jest "
},
"author": {
"name": "AWS SDK for JavaScript Team",
Expand Down
34 changes: 17 additions & 17 deletions packages/polly-request-presigner/src/getSignedUrls.spec.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
const mockV4Sign = jest.fn();
const mockPresign = jest.fn();
const mockV4 = jest.fn().mockReturnValue({
presign: mockPresign,
sign: mockV4Sign,
});
jest.mock("@aws-sdk/signature-v4", () => ({
SignatureV4: mockV4,
}));

import { PollyClient, SynthesizeSpeechCommand } from "@aws-sdk/client-polly";

jest.mock("@aws-sdk/util-format-url", () => ({
formatUrl: (url: any) => url,
}));

import { RequestPresigningArguments } from "@aws-sdk/types/src";
import { SignatureV4 } from "@aws-sdk/signature-v4";
import { RequestPresigningArguments } from "@aws-sdk/types";
import { formatUrl } from "@aws-sdk/util-format-url";

import { getSignedUrl } from "./getSignedUrls";

jest.mock("@aws-sdk/signature-v4");
jest.mock("@aws-sdk/util-format-url");

describe("getSignedUrl", () => {
const clientParams = { region: "us-foo-1" };
const mockV4Sign = jest.fn();
const mockPresign = jest.fn();

beforeEach(() => {
mockPresign.mockReset();
(SignatureV4 as jest.Mock).mockReturnValue({
presign: mockPresign,
sign: mockV4Sign,
});
(formatUrl as jest.Mock).mockImplementation((url: any) => url);
});

afterEach(() => {
jest.resetAllMocks();
});

it("should call SignatureV4.sign", async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/querystring-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest"
"test": "jest --passWithNoTests"
},
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/signature-v4-crt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest --coverage"
"test": "jest "
},
"author": {
"name": "AWS SDK for JavaScript Team",
Expand Down
2 changes: 1 addition & 1 deletion packages/signature-v4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest --coverage"
"test": "jest "
},
"author": {
"name": "AWS SDK for JavaScript Team",
Expand Down
2 changes: 1 addition & 1 deletion packages/util-credentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest"
"test": "jest --passWithNoTests"
},
"keywords": [
"aws",
Expand Down
2 changes: 1 addition & 1 deletion private/aws-echo-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"clean:dist": "rimraf ./dist-*",
"clean:docs": "rimraf ./docs",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest --coverage --passWithNoTests"
"test": "jest --passWithNoTests"
},
"main": "./dist-cjs/index.js",
"types": "./dist-types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion private/aws-protocoltests-ec2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"clean:dist": "rimraf ./dist",
"clean:docs": "rimraf ./docs",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest --coverage --passWithNoTests"
"test": "jest --passWithNoTests"
},
"main": "./dist-cjs/index.js",
"types": "./dist-types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion private/aws-protocoltests-json-10/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"clean:dist": "rimraf ./dist",
"clean:docs": "rimraf ./docs",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest --coverage --passWithNoTests"
"test": "jest --passWithNoTests"
},
"main": "./dist-cjs/index.js",
"types": "./dist-types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion private/aws-protocoltests-json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"clean:dist": "rimraf ./dist",
"clean:docs": "rimraf ./docs",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest --coverage --passWithNoTests"
"test": "jest --passWithNoTests"
},
"main": "./dist-cjs/index.js",
"types": "./dist-types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion private/aws-protocoltests-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"clean:dist": "rimraf ./dist",
"clean:docs": "rimraf ./docs",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest --coverage --passWithNoTests"
"test": "jest --passWithNoTests"
},
"main": "./dist-cjs/index.js",
"types": "./dist-types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion private/aws-protocoltests-restjson/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"clean:dist": "rimraf ./dist",
"clean:docs": "rimraf ./docs",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest --coverage --passWithNoTests"
"test": "jest --passWithNoTests"
},
"main": "./dist-cjs/index.js",
"types": "./dist-types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion private/aws-protocoltests-restxml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"clean:dist": "rimraf ./dist",
"clean:docs": "rimraf ./docs",
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
"test": "jest --coverage --passWithNoTests"
"test": "jest --passWithNoTests"
},
"main": "./dist-cjs/index.js",
"types": "./dist-types/index.d.ts",
Expand Down