Skip to content

Commit

Permalink
made requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rajat19 committed Jul 6, 2024
1 parent 22116fc commit 5065990
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Features

- `[jest-config]` Added an option to disable ts-node typechecking ([#15161](https://github.com/jestjs/jest/pull/15161))
- `[jest-circus, jest-cli, jest-config]` Add `waitNextEventLoopTurnForUnhandledRejectionEvents` flag to minimise performance impact of correct detection of unhandled promise rejections introduced in [#14315](https://github.com/jestjs/jest/pull/14315) ([#14681](https://github.com/jestjs/jest/pull/14681))
- `[jest-circus]` Add a `waitBeforeRetry` option to `jest.retryTimes` ([#14738](https://github.com/jestjs/jest/pull/14738))
- `[jest-circus]` Add a `retryImmediately` option to `jest.retryTimes` ([#14696](https://github.com/jestjs/jest/pull/14696))
Expand Down
1 change: 1 addition & 0 deletions docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export default async (): Promise<Config> => {
:::tip

To read TypeScript configuration files Jest requires [`ts-node`](https://npmjs.com/package/ts-node). Make sure it is installed in your project.
To read configuration files without typechecking, You can set `JEST_CONFIG_TRANSPILE_ONLY` environment variable to `True`.

:::

Expand Down
2 changes: 1 addition & 1 deletion packages/jest-config/src/readConfigFileAndSetRootDir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ async function registerTsNode(): Promise<Service> {
moduleTypes: {
'**': 'cjs',
},
transpileOnly: process.env.DISABLE_TS_NODE == 'True',
transpileOnly: process.env.JEST_CONFIG_TRANSPILE_ONLY == 'True',
});
} catch (error: any) {
if (error.code === 'ERR_MODULE_NOT_FOUND') {
Expand Down

0 comments on commit 5065990

Please sign in to comment.