Skip to content

Commit

Permalink
fix: makes referenced js files actually js
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitropoulos committed May 9, 2022
1 parent 755e84b commit 7831acf
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
14 changes: 8 additions & 6 deletions docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -761,17 +761,19 @@ A preset that is used as a base for Jest's configuration. A preset should point

For example, this preset `foo-bar/jest-preset.js` will be configured as follows:

```json
{
"preset": "foo-bar"
```js
/** @type { import('@jest/types').Config.InitialOptions } */
module.exports = {
preset: 'foo-bar',
}
```

Presets may also be relative to filesystem paths.

```json
{
"preset": "./node_modules/foo-bar/jest-preset.js"
```js
/** @type { import('@jest/types').Config.InitialOptions } */
module.exports = {
preset: './node_modules/foo-bar/jest-preset.js',
}
```

Expand Down
14 changes: 8 additions & 6 deletions website/versioned_docs/version-28.0/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -761,17 +761,19 @@ A preset that is used as a base for Jest's configuration. A preset should point

For example, this preset `foo-bar/jest-preset.js` will be configured as follows:

```json
{
"preset": "foo-bar"
```js
/** @type { import('@jest/types').Config.InitialOptions } */
module.exports = {
preset: 'foo-bar',
}
```

Presets may also be relative to filesystem paths.

```json
{
"preset": "./node_modules/foo-bar/jest-preset.js"
```js
/** @type { import('@jest/types').Config.InitialOptions } */
module.exports = {
preset: './node_modules/foo-bar/jest-preset.js',
}
```

Expand Down
14 changes: 8 additions & 6 deletions website/versioned_docs/version-28.1/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -761,17 +761,19 @@ A preset that is used as a base for Jest's configuration. A preset should point

For example, this preset `foo-bar/jest-preset.js` will be configured as follows:

```json
{
"preset": "foo-bar"
```js
/** @type { import('@jest/types').Config.InitialOptions } */
module.exports = {
preset: 'foo-bar',
}
```

Presets may also be relative to filesystem paths.

```json
{
"preset": "./node_modules/foo-bar/jest-preset.js"
```js
/** @type { import('@jest/types').Config.InitialOptions } */
module.exports = {
preset: './node_modules/foo-bar/jest-preset.js',
}
```

Expand Down

0 comments on commit 7831acf

Please sign in to comment.