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

TypeScript: Use with Jest #12097

Closed
2 tasks
swissspidy opened this issue Aug 11, 2022 · 1 comment · Fixed by #12167
Closed
2 tasks

TypeScript: Use with Jest #12097

swissspidy opened this issue Aug 11, 2022 · 1 comment · Fixed by #12167
Assignees
Labels
P2 Should do soon Type: Infrastructure Changes impacting testing infrastructure or build tooling

Comments

@swissspidy
Copy link
Collaborator

swissspidy commented Aug 11, 2022

Let's use ts-jest for improved TypeScript support in Jest so that we can also write unit tests with TypeScript —with proper type checking and not just transpilation.

See https://kulshekhar.github.io/ts-jest/docs/babel7-or-ts/
See https://kulshekhar.github.io/ts-jest/docs/27.0/guides/test-helpers/

  • Update ESLint config
  • Add preset: 'ts-jest' to Jest config
@swissspidy swissspidy added P2 Should do soon Type: Infrastructure Changes impacting testing infrastructure or build tooling Pod: WP labels Aug 11, 2022
@swissspidy

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Should do soon Type: Infrastructure Changes impacting testing infrastructure or build tooling
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant