Skip to content

Commit 6cc48ce

Browse files
authored
chore(release): 26.5.1 (#2343)
1 parent 1a3058f commit 6cc48ce

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## [26.5.1](https://github.com/kulshekhar/ts-jest/compare/v26.5.0...v26.5.1) (2021-02-09)
2+
3+
4+
### Features
5+
6+
* **config:** support typed config options for jest config typescript ([#2336](https://github.com/kulshekhar/ts-jest/issues/2336)) ([f4f5d32](https://github.com/kulshekhar/ts-jest/commit/f4f5d3205d1c80e545a32c02c6a66e7e91386f7f))
7+
* **presets:** add typing for `presets` entry point ([#2341](https://github.com/kulshekhar/ts-jest/issues/2341)) ([e12b004](https://github.com/kulshekhar/ts-jest/commit/e12b004dcc5848d5ae0638e885147c54e11cc72b)), closes [#2325](https://github.com/kulshekhar/ts-jest/issues/2325)
8+
9+
10+
111
# [27.0.0-next.5](https://github.com/kulshekhar/ts-jest/compare/v27.0.0-next.4...v27.0.0-next.5) (2021-02-04)
212

313

website/versioned_docs/version-26.5/getting-started/options.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ module.exports = {
4141
To utilize IDE suggestions, you can use `JSDoc` comments to provide suggested `ts-jest` configs for your Jest config:
4242

4343
```js
44-
/** @typedef {import('ts-jest/dist/types')} */
45-
/** @type {import('@jest/types').Config.InitialOptions} */
44+
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
4645
module.exports = config = {
4746
// [...]
4847
globals: {

website/versioned_docs/version-26.5/getting-started/presets.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ In this case you'll need to use the JavaScript version of Jest config (comment/u
5050
```js
5151
// jest.config.js
5252
const { defaults: tsjPreset } = require('ts-jest/presets')
53-
// const { jsWithTs: tsjPreset } = require('ts-jest/presets');
54-
// const { jsWithBabel: tsjPreset } = require('ts-jest/presets');
53+
// const { jsWithTs: tsjPreset } = require('ts-jest/presets')
54+
// const { jsWithBabel: tsjPreset } = require('ts-jest/presets')
5555

5656
module.exports = {
5757
// [...]
@@ -61,3 +61,21 @@ module.exports = {
6161
},
6262
}
6363
```
64+
65+
Or through TypeScript (if `ts-node` is installed):
66+
67+
```ts
68+
// jest.config.ts
69+
import type { InitialOptionsTsJest } from 'ts-jest/dist/types'
70+
import { defaults as tsjPreset } from 'ts-jest/preset'
71+
// import { jsWithTs as tsjPreset } from 'ts-jest/preset'
72+
// import { jsWithBabel as tsjPreset } from 'ts-jest/preset'
73+
const config: InitialOptionsTsJest = {
74+
// [...]
75+
transform: {
76+
...tsjPreset.transform,
77+
// [...]
78+
},
79+
}
80+
export default config
81+
```

0 commit comments

Comments
 (0)