Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
dcc71bb
feat: Add support for the `jest.config.ts` configuration file
Gamote Sep 29, 2020
e7b0573
chore: The `jest.config.ts` documentation was updated
Gamote Sep 29, 2020
a2c9fdc
chore: The `jest.config.ts` support was specified in the CHANGELOG.md
Gamote Sep 29, 2020
2b5d97a
chore: Documentation updated to encourage the usage of TS annotations
Gamote Sep 29, 2020
7f5a39d
Errors fixed for tests and prettier
Gamote Sep 29, 2020
0b68052
chore: Use 'ts-node' as peer dependency instead of 'typescript'
Gamote Sep 29, 2020
2ef46e2
chore: Documentation updated to specify the 'ts-node' peer dependency…
Gamote Sep 29, 2020
9bc4504
fix: Prettier errors
Gamote Sep 29, 2020
5674532
fix: Remove console logs to avoid them to be captured in snapshots
Gamote Sep 29, 2020
de5766b
fix: Remove console logs to avoid them to be captured in snapshots
Gamote Sep 29, 2020
c9069fd
fix: Added 'testEnvironment' in the `jest.config.ts` tests to fix the…
Gamote Sep 30, 2020
2cf2933
chore: `interopRequireDefault` was moved to save an import
Gamote Sep 30, 2020
144c341
chore: better comments for `readConfigFileAndSetRootDir`
Gamote Sep 30, 2020
8fa7b61
chore: indicate that `ts-node` is optional via 'peerDependenciesMeta'
Gamote Sep 30, 2020
d8724e6
chore: Updated documentation
Gamote Sep 30, 2020
a5033aa
chore: tests was added to be sure that the types are checked in the `…
Gamote Oct 2, 2020
4d49437
chore: Update the fixture for `jest.config.ts` to use 'default'
Gamote Oct 2, 2020
50623f4
Merge branch 'master' into feature/allow-ts-config-file
Gamote Oct 12, 2020
e0b5270
chore: (ts-node) allow for majors higher than 9
Gamote Oct 12, 2020
0d6f2ca
chore: revert changes in the 26.4 documentation
Gamote Oct 12, 2020
a291af2
chore: updated the return of 'loadTSConfigFile'
Gamote Oct 12, 2020
5d4065e
chore: replace local 'interopRequireDefault' with the one defined in …
Gamote Oct 12, 2020
ee9569b
chore: handle the case in which config is a function which imports mo…
Gamote Oct 12, 2020
91de77a
chore: let the consumers to deal with ts-node errors
Gamote Oct 12, 2020
2f16544
chore: docs comments were updated
Gamote Oct 12, 2020
b551b29
fix: tests were fixed after 'readConfigFileAndSetRootDir' updates
Gamote Oct 12, 2020
4ec1eb1
chore: 'jest-environment-jsdom-fifteen' was replaced with 'jest-envir…
Gamote Oct 12, 2020
7d6f815
chore: ask the user if he want's to use the Typescript configuration …
Gamote Oct 12, 2020
9bf4a0c
chore: use the local 'jest-environment-node'
Gamote Oct 12, 2020
a69c677
fix: use `jest-util` instead of `jest-util/build`
Gamote Oct 12, 2020
a3b7210
chore: add type annotation for the 'ts-node' register variable
Gamote Oct 12, 2020
8b678d9
chore: make Typescript override module
Gamote Oct 12, 2020
729f6dc
chore: 'jest-environment-node' was removed from the root `package.json`
Gamote Oct 12, 2020
7c02d1c
chore: added `ts-node` as dev dependency in the `jest-config`
Gamote Oct 12, 2020
9aa8d53
chores:
Gamote Oct 12, 2020
55169aa
chore: move `typescript` and `ts-node` from 'dependencies' to 'devDep…
Gamote Oct 12, 2020
b614995
fix: jest.config.ts test > user answered with "No"
Gamote Oct 12, 2020
3fb9994
chore: use multiline string instead of manual newlines
Gamote Oct 12, 2020
6336d36
chore: better naming for the 'configDocMessage': 'configHeaderMessage'
Gamote Oct 12, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: The jest.config.ts documentation was updated
  • Loading branch information
Gamote committed Sep 29, 2020
commit e7b057375a607a2865e1109426fdf680838e00f1
4 changes: 3 additions & 1 deletion docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ Or through TypeScript:

```ts
// jest.config.ts
import type { Config } from '@jest/types';

//Sync object
export = {
verbose: true,
};
} as Config.InitialOptions;

//Or async function
export default async (): Promise<Config.InitialOptions> => {
Expand Down
4 changes: 3 additions & 1 deletion website/versioned_docs/version-26.4/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ Or through TypeScript:

```ts
// jest.config.ts
import type { Config } from '@jest/types';

//Sync object
export = {
verbose: true,
};
} as Config.InitialOptions;

//Or async function
export default async (): Promise<Config.InitialOptions> => {
Expand Down