Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/m-radzikowski/aws-sdk-client-mock
/ functions
Functions
109 in github.com/m-radzikowski/aws-sdk-client-mock
⨍
Functions
109
◇
Types & classes
23
↓ 54 callers
Method
resolves
(response: CommandResponse<TCommandOutput>)
packages/aws-sdk-client-mock/src/awsClientStub.ts:16
↓ 44 callers
Function
mockClient
( client: InstanceOrClassType<Client<TInput, TOutput, TConfiguration>>, {sandbox}: { sandbox?: SinonSa
packages/aws-sdk-client-mock/src/mockClient.ts:13
↓ 44 callers
Method
on
( command: new (input: TCmdInput) => AwsCommand<TCmdInput, TCmdOutput>, input?: Partial<TCmdInput>, st
packages/aws-sdk-client-mock/src/awsClientStub.ts:12
↓ 16 callers
Method
onAnyCommand
(input?: Partial<TCmdInput>, strict?: boolean)
packages/aws-sdk-client-mock/src/awsClientStub.ts:10
↓ 16 callers
Method
toHaveReceivedNthCommandWith
* Asserts the nth call to the {@link AwsStub Client Mock} was a given `Command` with matching input. * * @example * The second call to `SNSCl
packages/aws-sdk-client-mock-jest/src/types.ts:140
↓ 14 callers
Method
resolvesOnce
(response: CommandResponse<TCommandOutput>)
packages/aws-sdk-client-mock/src/awsClientStub.ts:18
↓ 14 callers
Method
toHaveReceivedCommandWith
* Asserts the {@link AwsStub Client Mock} received given `Command` at least one time with matching input. * * @example * ```js * expect(sn
packages/aws-sdk-client-mock-jest/src/types.ts:113
↓ 13 callers
Method
toHaveReceivedCommand
* Asserts the {@link AwsStub Client Mock} received given `Command` at least one time. * * @example * ```js * expect(snsMock).toHaveReceive
packages/aws-sdk-client-mock-jest/src/types.ts:81
↓ 12 callers
Method
callsFake
(fn: (input: any, getClient: () => Client<TInput, TOutput, TConfiguration>) => any)
packages/aws-sdk-client-mock/src/awsClientStub.ts:24
↓ 12 callers
Method
commandCalls
* Returns recorded calls of given Command only. * @param commandType Command type to match * @param input Command payload to match * @p
packages/aws-sdk-client-mock/src/awsClientStub.ts:118
↓ 12 callers
Method
rejects
(error?: string | Error | AwsError)
packages/aws-sdk-client-mock/src/awsClientStub.ts:20
↓ 10 callers
Method
toHaveReceivedCommandTimes
* Asserts the {@link AwsStub Client Mock} received given `Command` exact number of times. * * @example * ```js * expect(snsMock).toHaveRec
packages/aws-sdk-client-mock-jest/src/types.ts:65
↓ 9 callers
Method
toHaveReceivedNthSpecificCommandWith
* Asserts the nth `Command` of given type sent to the {@link AwsStub Client Mock} had matching input. * * @example * The second `PublishComma
packages/aws-sdk-client-mock-jest/src/types.ts:168
↓ 7 callers
Method
call
* Returns n-th recorded call to the stub.
packages/aws-sdk-client-mock/src/awsClientStub.ts:108
↓ 6 callers
Function
addCalls
* Prettyprints command calls for message
packages/aws-sdk-client-mock-jest/src/jest.ts:16
↓ 6 callers
Function
ensureNoOtherArgs
(args: unknown[])
packages/aws-sdk-client-mock-jest/src/jestMatchers.ts:77
↓ 6 callers
Method
onAnyCommand
* Allows specifying the behavior for any Command with given input (parameters). * * If the input is not specified, the given behavior will b
packages/aws-sdk-client-mock/src/awsClientStub.ts:177
↓ 6 callers
Function
processMatch
( args: ProcessMatchArgs<T, CheckData>, )
packages/aws-sdk-client-mock-jest/src/jestMatchers.ts:35
↓ 6 callers
Method
toReceiveNthCommandWith
* @see toHaveReceivedNthCommandWith
packages/aws-sdk-client-mock-jest/src/types.ts:214
↓ 5 callers
Method
calls
* Returns recorded calls to the stub. * Clear history with {@link resetHistory} or {@link reset}.
packages/aws-sdk-client-mock/src/awsClientStub.ts:101
↓ 5 callers
Method
callsFakeOnce
(fn: (input: any, getClient: () => Client<TInput, TOutput, TConfiguration>) => any)
packages/aws-sdk-client-mock/src/awsClientStub.ts:26
↓ 5 callers
Method
ensureFocusedElementVisible
()
docs/assets/main.js:3
↓ 5 callers
Method
restore
Replaces stub with original `Client#send()` method.
packages/aws-sdk-client-mock/src/awsClientStub.ts:93
↓ 5 callers
Method
toHaveReceivedAnyCommand
* Asserts {@link AwsStub Client Mock} was called at least once with any `Command`.
packages/aws-sdk-client-mock-jest/src/types.ts:179
↓ 4 callers
Method
commandCall
* Returns n-th call of given Command only. * @param n Index of the call * @param commandType Command type to match * @param input Comma
packages/aws-sdk-client-mock/src/awsClientStub.ts:141
↓ 4 callers
Function
ordinalOf
(n: number)
packages/aws-sdk-client-mock-jest/src/vitest.ts:9
↓ 4 callers
Method
reset
* Resets stub. It will replace the stub with a new one, with clean history and behavior.
packages/aws-sdk-client-mock/src/awsClientStub.ts:75
↓ 4 callers
Function
resolveImmediately
(x: T)
packages/aws-sdk-client-mock/test/mockClient.test.ts:792
↓ 4 callers
Method
toReceiveCommand
* @see toHaveReceivedCommand
packages/aws-sdk-client-mock-jest/src/types.ts:195
↓ 4 callers
Method
toReceiveCommandWith
* @see toHaveReceivedCommandWith
packages/aws-sdk-client-mock-jest/src/types.ts:203
↓ 4 callers
Method
update
()
docs/assets/main.js:5
↓ 4 callers
Method
updateIndexVisibility
()
docs/assets/main.js:3
↓ 3 callers
Function
G
(t,e)
docs/assets/main.js:3
↓ 3 callers
Function
K
(t)
docs/assets/main.js:4
↓ 3 callers
Method
createInputMatcher
(input?: Partial<TCmdInput>, strict = false)
packages/aws-sdk-client-mock/src/awsClientStub.ts:206
↓ 3 callers
Function
exec
(cmd: string)
test-e2e/simple/run.ts:4
↓ 3 callers
Method
normalizeError
(error?: string | Error | AwsError)
packages/aws-sdk-client-mock/src/awsClientStub.ts:473
↓ 3 callers
Method
rejectsOnce
(error?: string | Error | AwsError)
packages/aws-sdk-client-mock/src/awsClientStub.ts:22
↓ 3 callers
Method
setActive
(e)
docs/assets/main.js:4
↓ 3 callers
Method
toReceiveCommandTimes
* @see toHaveReceivedCommandTimes
packages/aws-sdk-client-mock-jest/src/types.ts:186
↓ 3 callers
Method
toReceiveNthSpecificCommandWith
* @see toHaveReceivedNthSpecificCommandWith
packages/aws-sdk-client-mock-jest/src/types.ts:226
↓ 2 callers
Function
Ee
(t,e,n)
docs/assets/main.js:5
↓ 2 callers
Function
ce
(t,e)
docs/assets/main.js:4
↓ 2 callers
Method
clientName
Returns the class name of the underlying mocked client class
packages/aws-sdk-client-mock/src/awsClientStub.ts:68
↓ 2 callers
Function
createBaseMatchers
( errorMsg: MessageImpl<T>, objectContaining: (sample: Record<string, unknown>) => { asymmetri
packages/aws-sdk-client-mock-jest/src/jestMatchers.ts:119
↓ 2 callers
Method
createComponents
(e)
docs/assets/main.js:3
↓ 2 callers
Method
fakeFnWrapper
(cmd: AwsCommand<TInput, TOutput>, fn: (input: any, getClient: () => Client<TInput, TOutput, TConfiguration>)
packages/aws-sdk-client-mock/src/awsClientStub.ts:542
↓ 2 callers
Function
le
(t,e)
docs/assets/main.js:3
↓ 2 callers
Method
scrollToHash
()
docs/assets/main.js:3
↓ 2 callers
Method
setLocalStorage
(e)
docs/assets/main.js:5
↓ 2 callers
Function
t
(e)
docs/assets/main.js:2
↓ 2 callers
Function
test
(val)
packages/aws-sdk-client-mock-jest/vitest.serializer.ts:8
↓ 2 callers
Method
toReceiveAnyCommand
* @see toHaveReceivedAnyCommand
packages/aws-sdk-client-mock-jest/src/types.ts:237
↓ 2 callers
Function
ue
(t,e)
docs/assets/main.js:4
↓ 2 callers
Function
ve
(t)
docs/assets/main.js:5
↓ 1 callers
Function
Ae
(t,e,n,r)
docs/assets/main.js:3
↓ 1 callers
Function
De
(t,e,n)
docs/assets/main.js:2
↓ 1 callers
Function
Fe
(t,e,n,r)
docs/assets/main.js:2
↓ 1 callers
Function
Me
(t,e)
docs/assets/main.js:2
↓ 1 callers
Function
Ne
(t,e)
docs/assets/main.js:4
↓ 1 callers
Function
Ve
(t,e,n,r)
docs/assets/main.js:3
↓ 1 callers
Function
be
()
docs/assets/main.js:5
↓ 1 callers
Method
ensureActivePageVisible
()
docs/assets/main.js:3
↓ 1 callers
Method
filterChanged
()
docs/assets/main.js:3
↓ 1 callers
Method
fromLocalStorage
()
docs/assets/main.js:5
↓ 1 callers
Function
ge
(t)
docs/assets/main.js:5
↓ 1 callers
Method
handleValueChange
()
docs/assets/main.js:5
↓ 1 callers
Function
he
()
docs/assets/main.js:3
↓ 1 callers
Function
ie
(t,e=100)
docs/assets/main.js:3
↓ 1 callers
Function
isClientInstance
(obj: InstanceOrClassType<TClient>)
packages/aws-sdk-client-mock/src/mockClient.ts:40
↓ 1 callers
Function
isSinonStub
(obj: unknown)
packages/aws-sdk-client-mock/src/sinon.ts:7
↓ 1 callers
Method
listenForCodeCopies
()
docs/assets/main.js:3
↓ 1 callers
Method
onDocumentPointerDown
(e)
docs/assets/main.js:4
↓ 1 callers
Method
onDocumentPointerUp
(e)
docs/assets/main.js:4
↓ 1 callers
Method
onPointerUp
(e)
docs/assets/main.js:4
↓ 1 callers
Method
resetHistory
Resets stub's calls history.
packages/aws-sdk-client-mock/src/awsClientStub.ts:87
↓ 1 callers
Method
showPage
()
docs/assets/main.js:3
↓ 1 callers
Function
updateUseElements
()
docs/assets/icons.js:7
↓ 1 callers
Function
we
(t,e,n)
docs/assets/main.js:5
↓ 1 callers
Function
xe
()
docs/assets/main.js:5
Function
N
(c)
docs/assets/main.js:3
Method
callsFake
* Sets a function that will be called on any `Client#send()` invocation. * * @example * ```js * snsMock * .callsFake(input
packages/aws-sdk-client-mock/src/awsClientStub.ts:320
Method
callsFake
* Sets a function that will be called on `Client#send()` invocation for the current `Command`. * * @example * ```js * snsMock
packages/aws-sdk-client-mock/src/awsClientStub.ts:515
Method
callsFakeOnce
* Sets a function that will be called once, on any `Client#send()` invocation. * * Can be chained so that successive invocations call differ
packages/aws-sdk-client-mock/src/awsClientStub.ts:340
Method
callsFakeOnce
* Sets a function that will be called once on `Client#send()` invocation for the current `Command`. * * Can be chained so that successive i
packages/aws-sdk-client-mock/src/awsClientStub.ts:537
Method
constructor
( private client: Client<TInput, TOutput, TConfiguration>, send: SinonStub<[AwsCommand<TInput,
packages/aws-sdk-client-mock/src/awsClientStub.ts:60
Method
constructor
( private clientStub: AwsStub<TInput, TOutput, TConfiguration>, private send: SinonStub<[AwsCo
packages/aws-sdk-client-mock/src/awsClientStub.ts:360
Method
constructor
()
docs/assets/main.js:3
Function
getItem
()
docs/assets/main.js:4
Function
msg
()
packages/aws-sdk-client-mock-jest/src/jestMatchers.ts:59
Method
on
* Allows specifying the behavior for a given Command type and its input (parameters). * * If the input is not specified, it will match any C
packages/aws-sdk-client-mock/src/awsClientStub.ts:198
Method
on
* @deprecated Using this method means that the previously set `.on(Command)` was not followed by resolves/rejects/callsFake call. * If this is l
packages/aws-sdk-client-mock/src/awsClientStub.ts:378
Method
onAnyCommand
* @deprecated Using this method means that the previously set `.on(Command)` was not followed by resolves/rejects/callsFake call. * If this is l
packages/aws-sdk-client-mock/src/awsClientStub.ts:370
Method
rejects
* Sets a failure response that will be returned from any `Client#send()` invocation. * The response will always be an `Error` instance. *
packages/aws-sdk-client-mock/src/awsClientStub.ts:267
Method
rejects
* Sets a failure response that will be returned from `Client#send()` invocation for the current `Command`. * The response will always be an `Erro
packages/aws-sdk-client-mock/src/awsClientStub.ts:445
Method
rejectsOnce
* Sets a failure response that will be returned from one `Client#send()` invocation. * The response will always be an `Error` instance. *
packages/aws-sdk-client-mock/src/awsClientStub.ts:288
Method
rejectsOnce
* Sets a failure response that will be returned from one `Client#send()` invocation for the current `Command`. * The response will always be an `
packages/aws-sdk-client-mock/src/awsClientStub.ts:468
Method
resolves
* Sets a successful response that will be returned from any `Client#send()` invocation. * * @example * ```js * snsMock * .r
packages/aws-sdk-client-mock/src/awsClientStub.ts:223
Method
resolves
* Sets a successful response that will be returned from `Client#send()` invocation for the current `Command`. * * @example * ```js
packages/aws-sdk-client-mock/src/awsClientStub.ts:396
Method
resolvesOnce
* Sets a successful response that will be returned from one `Client#send()` invocation. * * Can be chained so that successive invocations re
packages/aws-sdk-client-mock/src/awsClientStub.ts:243
next →
1–100 of 109, ranked by callers