We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
npx ts-jest config:init
The initialized config should be typed. Everyone using this preset likes types.
Everybody loves code completion
Currently, after running npx ts-jest config:init, the following config is created: jest.config.js:
jest.config.js
module.exports = { preset: 'ts-jest', testEnvironment: 'node', };
What I really want is either (stolen right from the jest docs) jest.config.js:
/** @type {import('@jest/types').Config.InitialOptions} */ module.exports = { preset: 'ts-jest', testEnvironment: 'node', };
Or alternatively (everyone using ts-jest also uses typescript, but this requires ts-node to be installed) jest.config.ts:
ts-node
jest.config.ts
import type { Config } from '@jest/types'; const config: Config = { preset: 'ts-jest', testEnvironment: 'node', }; default export config;
I guess the comment type import is the way to go.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
🚀 Feature Proposal
The initialized config should be typed. Everyone using this preset likes types.
Motivation
Everybody loves code completion
Example
Currently, after running
npx ts-jest config:init
, the following config is created:jest.config.js
:What I really want is either (stolen right from the jest docs)
jest.config.js
:Or alternatively (everyone using ts-jest also uses typescript, but this requires
ts-node
to be installed)jest.config.ts
:I guess the comment type import is the way to go.
The text was updated successfully, but these errors were encountered: