New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stripe.resources.Checkout.prototype seems to be broken? #2060
Comments
@jeffplays2005 Can you say a little bit about what you are hoping to accomplish? Using |
I'm trying to use this in jest for route testing for a route that has the method, jest.mock("stripe", () => {
const stripe = jest.requireActual("stripe")
jest
.spyOn(stripe.resources.Checkout.sessions, "list")
.mockImplementation((props) => {
const { limit = 10 } = props as {
limit?: number
}
const items = Array(limit).fill(mock)
return Promise.resolve({ data: items })
})
}) |
@jeffplays2005 That still does not tell us why you were looking for any of the create/list/del etc. methods on |
Describe the bug
Seems to be empty compared to other prototypes.
To Reproduce
Expected behavior
{
create: [Function (anonymous)],
retrieve: [Function (anonymous)],
list: [Function (anonymous)],
expire: [Function (anonymous)],
listLineItems: [Function (anonymous)]
}
Code snippets
No response
OS
macOS
Node version
Node v20.0.0
Library version
14.23.0
API version
2022-08-01
Additional context
No response
The text was updated successfully, but these errors were encountered: