Skip to content

Commit 67d4199

Browse files
authored
Merge branch 'main' into move-off-alias-methods
2 parents 5ec3084 + 96a4478 commit 67d4199

File tree

9 files changed

+866
-386
lines changed

9 files changed

+866
-386
lines changed

CHANGELOG.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
- `[*]` Depend on exact versions of monorepo dependencies instead of `^` range ([#14553](https://github.com/facebook/jest/pull/14553))
4545
- `[babel-jest, babel-preset-jest]` [**BREAKING**] Increase peer dependency of `@babel/core` to `^7.11` ([#14109](https://github.com/jestjs/jest/pull/14109))
4646
- `[jest-cli, jest-config, @jest/types]` [**BREAKING**] Remove deprecated `--init` argument ([#14490](https://github.com/jestjs/jest/pull/14490))
47+
- `[docs]` Fix typos in `CHANGELOG.md` and `packages/jest-validate/README.md` ([#14640](https://github.com/jestjs/jest/pull/14640))
4748
- `[docs]` Don't use alias matchers in docs ([#14631](https://github.com/facebook/jest/pull/14631))
4849

4950
## 29.7.0
@@ -634,7 +635,7 @@
634635

635636
### Fixes
636637

637-
- `[*]` Use `sha256` instead of `md5` as hashing algortihm for compatibility with FIPS systems ([#12722](https://github.com/facebook/jest/pull/12722))
638+
- `[*]` Use `sha256` instead of `md5` as hashing algorithm for compatibility with FIPS systems ([#12722](https://github.com/facebook/jest/pull/12722))
638639
- `[babel-jest]` [**BREAKING**] Pass `rootDir` as `root` in Babel's options ([#12689](https://github.com/facebook/jest/pull/12689))
639640
- `[expect]` Move typings of `.not`, `.rejects` and `.resolves` modifiers outside of `Matchers` interface ([#12346](https://github.com/facebook/jest/pull/12346))
640641
- `[expect]` Throw useful error if `expect.extend` is called with invalid matchers ([#12488](https://github.com/facebook/jest/pull/12488))
@@ -1441,7 +1442,7 @@
14411442
- `[*]` Upgrade to chalk@4 ([#9752](https://github.com/facebook/jest/pull/9752))
14421443
- `[*]` Remove usage of `realpath-native` ([#9952](https://github.com/facebook/jest/pull/9952))
14431444
- `[docs]` Fix example reference implementation to use Jest with Phabricator ([#8662](https://github.com/facebook/jest/pull/8662))
1444-
- `[docs]` Added default compiler to tranform ([#8583](https://github.com/facebook/jest/pull/8583))
1445+
- `[docs]` Added default compiler to transform ([#8583](https://github.com/facebook/jest/pull/8583))
14451446
- `[docs]` Updated Testing Frameworks guide with React; make it generic ([#9106](https://github.com/facebook/jest/pull/9106))
14461447
- `[expect, jest-mock, pretty-format]` [**BREAKING**] Remove `build-es5` from package ([#9945](https://github.com/facebook/jest/pull/9945))
14471448
- `[@jest/fake-timers, @jest/environment]` [**BREAKING**] Rename `LolexFakeTimers` to `ModernFakeTimers` ([#9960](https://github.com/facebook/jest/pull/9960))
@@ -3481,7 +3482,7 @@ See <https://jestjs.io/blog/2016/12/15/2016-in-jest>
34813482
- Added `--watchAll`, made `--watch` interactive and added the ability to update snapshots and select test patterns in watch mode.
34823483
- Jest uses verbose mode when running a single test file.
34833484
- Console messages are now buffered and printed along with the test results.
3484-
- Fix `testEnvironment` resolution to prefer `jest-environment-{name}` instead of `{name}` only. This prevents a module colision when using `jsdom` as test environment.
3485+
- Fix `testEnvironment` resolution to prefer `jest-environment-{name}` instead of `{name}` only. This prevents a module collision when using `jsdom` as test environment.
34853486
- `moduleNameMapper` now uses a resolution algorithm.
34863487
- Improved performance for small test runs.
34873488
- Improved API documentation.
@@ -3620,7 +3621,7 @@ See <https://jestjs.io/blog/2016/12/15/2016-in-jest>
36203621
- Clear the terminal window when using `--watch`.
36213622
- By default, `--watch` will now only runs tests related to changed files. `--watch=all` can be used to run all tests on file system changes.
36223623
- Debounce `--watch` re-runs to not trigger test runs during a branch switch in version control.
3623-
- Added `jest.fn()` and `jest.fn(implementation)` as convenient shorcuts for `jest.genMockFunction()` and `jest.genMockFunction().mockImplementation()`.
3624+
- Added `jest.fn()` and `jest.fn(implementation)` as convenient shortcuts for `jest.genMockFunction()` and `jest.genMockFunction().mockImplementation()`.
36243625
- Added an `automock` option to turn off automocking globally.
36253626
- Added a "no tests found" message if no tests can be found.
36263627
- Jest sets `process.NODE_ENV` to `test` unless otherwise specified.

netlify.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
publish = "/website/build"
88

99
[build.environment]
10-
NODE_VERSION = "16"
10+
NODE_VERSION = "20"
1111
NODE_OPTIONS = "--max_old_space_size=4096"
1212
# default cache
1313
YARN_ENABLE_GLOBAL_CACHE = "true"
1414
YARN_GLOBAL_FOLDER = "/opt/buildhome/.yarn_cache"
1515
YARN_CACHE_FOLDER = "/opt/buildhome/.yarn_cache"
16-
YARN_VERSION = "3.3.1"
16+
YARN_VERSION = "3.6.4"
1717

1818
[context.production]
1919
# Do not build the site if there's no site-related changes

packages/jest-resolve/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"devDependencies": {
3131
"@tsd/typescript": "^5.0.4",
3232
"@types/graceful-fs": "^4.1.3",
33-
"@types/pnpapi": "^0.0.3",
33+
"@types/pnpapi": "^0.0.4",
3434
"@types/resolve": "^1.20.2",
3535
"tsd-lite": "^0.8.0"
3636
},

packages/jest-validate/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ import {validate} from 'jest-validate';
203203
validateCLIOptions(argv, {...allowedOptions, deprecatedOptions});
204204
```
205205

206-
If `argv` contains a deprecated option that is not specifid in `allowedOptions`, `validateCLIOptions` will throw an error with the message specified in the `deprecatedOptions` config:
206+
If `argv` contains a deprecated option that is not specified in `allowedOptions`, `validateCLIOptions` will throw an error with the message specified in the `deprecatedOptions` config:
207207

208208
```bash
209209
● collectCoverageOnlyFrom:
@@ -213,4 +213,4 @@ If `argv` contains a deprecated option that is not specifid in `allowedOptions`,
213213
CLI Options Documentation: https://jestjs.io/docs/en/cli.html
214214
```
215215

216-
If the deprecation option is still listed in the `allowedOptions` config, then `validateCLIOptions` will print the warning wihout throwing an error.
216+
If the deprecation option is still listed in the `allowedOptions` config, then `validateCLIOptions` will print the warning without throwing an error.

website/docusaurus.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ const config = {
223223
},
224224
image: 'img/opengraph.png',
225225
prism: {
226+
additionalLanguages: ['bash', 'diff', 'json'],
226227
theme: require('./src/prism/themeLight'),
227228
darkTheme: require('./src/prism/themeDark'),
228229
},

website/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@
3232
]
3333
},
3434
"dependencies": {
35-
"@docusaurus/core": "^3.0.0-beta.0",
36-
"@docusaurus/plugin-client-redirects": "3.0.0-beta.0",
37-
"@docusaurus/plugin-pwa": "3.0.0-beta.0",
38-
"@docusaurus/preset-classic": "3.0.0-beta.0",
39-
"@docusaurus/remark-plugin-npm2yarn": "3.0.0-beta.0",
35+
"@docusaurus/core": "3.0.0-rc.0",
36+
"@docusaurus/plugin-client-redirects": "3.0.0-rc.0",
37+
"@docusaurus/plugin-pwa": "3.0.0-rc.0",
38+
"@docusaurus/preset-classic": "3.0.0-rc.0",
39+
"@docusaurus/remark-plugin-npm2yarn": "3.0.0-rc.0",
4040
"clsx": "^2.0.0",
41-
"docusaurus-remark-plugin-tab-blocks": "^2.0.0-beta",
41+
"docusaurus-remark-plugin-tab-blocks": "^2.0.0-rc.0",
42+
"prism-react-renderer": "^2.1.0",
4243
"react": "18.2.0",
4344
"react-dom": "18.2.0",
4445
"react-github-btn": "^1.3.0",
@@ -48,8 +49,8 @@
4849
"devDependencies": {
4950
"@babel/core": "^7.11.6",
5051
"@crowdin/cli": "^3.5.2",
51-
"@docusaurus/module-type-aliases": "3.0.0-beta.0",
52-
"@docusaurus/tsconfig": "3.0.0-beta.0",
52+
"@docusaurus/module-type-aliases": "3.0.0-rc.0",
53+
"@docusaurus/tsconfig": "3.0.0-rc.0",
5354
"@types/react": "^18.2.0",
5455
"graphql": "^16.3.0",
5556
"graphql-request": "^6.0.0",

website/src/prism/themeDark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
const baseTheme = require('prism-react-renderer/themes/vsDark');
8+
const {themes} = require('prism-react-renderer');
9+
const baseTheme = themes.vsDark;
910

1011
const themeDark = [
1112
{

website/src/prism/themeLight.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
const baseTheme = require('prism-react-renderer/themes/github');
8+
const {themes} = require('prism-react-renderer');
9+
const baseTheme = themes.github;
910

1011
const themeLight = [
1112
{

0 commit comments

Comments
 (0)