Skip to content
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

Newly created app fails tests #441

Closed
ericfrank-stripe opened this issue Apr 25, 2022 · 2 comments
Closed

Newly created app fails tests #441

ericfrank-stripe opened this issue Apr 25, 2022 · 2 comments
Assignees
Labels
app-platform bug Something isn't working

Comments

@ericfrank-stripe
Copy link
Collaborator

Describe the bug
Creating a fresh Stripe App and running the test suite with yarn test fails with this:
src/views/App.test.tsx
● Test suite failed to run

● Invalid return value:
  Code transformer's `process` method must return an object containing `code` key
  with processed string. If `processAsync` method is implemented it must return
  a Promise resolving to an object containing `code` key with processed string.
@ericfrank-stripe ericfrank-stripe added bug Something isn't working needs-triage labels Apr 25, 2022
@ericfrank-stripe ericfrank-stripe self-assigned this Apr 25, 2022
@ericfrank-stripe
Copy link
Collaborator Author

ericfrank-stripe commented Apr 25, 2022

Jest version 28.0.0 just came out, and it looks like ts-jest is lagging behind (see kulshekhar/ts-jest#3453). To fix this, change the jest version in package.json to 27.5.1. We will pin this version in the CLI.

@ericfrank-stripe
Copy link
Collaborator Author

This is fixed for newly created apps in the latest version of the CLI. To upgrade your CLI, run stripe plugin upgrade apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-platform bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants