You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
....and then I never got around to opening this issue or making a PR 😅
Motivation
This pattern should help reduce misconfiguration issues, such as #1564 :)
Example
The caveat which would be useful to document is that you need to give TypeScript a reason to look in ts-jest/index.d.ts from jest.config.js. The easiest way of doing this is to import ts-jest either via jsdoc (/** @typedef {import('ts-jest')} */) or at runtime (require('ts-jest') or import 'ts-jest').
The text was updated successfully, but these errors were encountered:
🚀 Feature Proposal
A few months back I converted the jest
ConfigGlobal
type from atype
to aninterface
to allow declaration merging, semi-specifically forts-jest
:....and then I never got around to opening this issue or making a PR 😅
Motivation
This pattern should help reduce misconfiguration issues, such as #1564 :)
Example
The caveat which would be useful to document is that you need to give TypeScript a reason to look in
ts-jest/index.d.ts
fromjest.config.js
. The easiest way of doing this is to importts-jest
either via jsdoc (/** @typedef {import('ts-jest')} */
) or at runtime (require('ts-jest')
orimport 'ts-jest'
).The text was updated successfully, but these errors were encountered: