Skip to content

Conversation

Connormiha
Copy link
Contributor

I simplified the code by replacing the reduce with the inner loop with a flatMap.

Summary

Test plan

Copy link

netlify bot commented Aug 19, 2025

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit e1a857c
🔍 Latest deploy log https://app.netlify.com/projects/jestjs/deploys/68a49e60d70fbb0008118b97
😎 Deploy Preview https://deploy-preview-15790--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

pkg-pr-new bot commented Aug 19, 2025

Open in StackBlitz

babel-jest

npm i https://pkg.pr.new/babel-jest@15790

babel-plugin-jest-hoist

npm i https://pkg.pr.new/babel-plugin-jest-hoist@15790

babel-preset-jest

npm i https://pkg.pr.new/babel-preset-jest@15790

create-jest

npm i https://pkg.pr.new/create-jest@15790

@jest/diff-sequences

npm i https://pkg.pr.new/@jest/diff-sequences@15790

expect

npm i https://pkg.pr.new/expect@15790

@jest/expect-utils

npm i https://pkg.pr.new/@jest/expect-utils@15790

jest

npm i https://pkg.pr.new/jest@15790

jest-changed-files

npm i https://pkg.pr.new/jest-changed-files@15790

jest-circus

npm i https://pkg.pr.new/jest-circus@15790

jest-cli

npm i https://pkg.pr.new/jest-cli@15790

jest-config

npm i https://pkg.pr.new/jest-config@15790

@jest/console

npm i https://pkg.pr.new/@jest/console@15790

@jest/core

npm i https://pkg.pr.new/@jest/core@15790

@jest/create-cache-key-function

npm i https://pkg.pr.new/@jest/create-cache-key-function@15790

jest-diff

npm i https://pkg.pr.new/jest-diff@15790

jest-docblock

npm i https://pkg.pr.new/jest-docblock@15790

jest-each

npm i https://pkg.pr.new/jest-each@15790

@jest/environment

npm i https://pkg.pr.new/@jest/environment@15790

jest-environment-jsdom

npm i https://pkg.pr.new/jest-environment-jsdom@15790

@jest/environment-jsdom-abstract

npm i https://pkg.pr.new/@jest/environment-jsdom-abstract@15790

jest-environment-node

npm i https://pkg.pr.new/jest-environment-node@15790

@jest/expect

npm i https://pkg.pr.new/@jest/expect@15790

@jest/fake-timers

npm i https://pkg.pr.new/@jest/fake-timers@15790

@jest/get-type

npm i https://pkg.pr.new/@jest/get-type@15790

@jest/globals

npm i https://pkg.pr.new/@jest/globals@15790

jest-haste-map

npm i https://pkg.pr.new/jest-haste-map@15790

jest-jasmine2

npm i https://pkg.pr.new/jest-jasmine2@15790

jest-leak-detector

npm i https://pkg.pr.new/jest-leak-detector@15790

jest-matcher-utils

npm i https://pkg.pr.new/jest-matcher-utils@15790

jest-message-util

npm i https://pkg.pr.new/jest-message-util@15790

jest-mock

npm i https://pkg.pr.new/jest-mock@15790

@jest/pattern

npm i https://pkg.pr.new/@jest/pattern@15790

jest-phabricator

npm i https://pkg.pr.new/jest-phabricator@15790

jest-regex-util

npm i https://pkg.pr.new/jest-regex-util@15790

@jest/reporters

npm i https://pkg.pr.new/@jest/reporters@15790

jest-resolve

npm i https://pkg.pr.new/jest-resolve@15790

jest-resolve-dependencies

npm i https://pkg.pr.new/jest-resolve-dependencies@15790

jest-runner

npm i https://pkg.pr.new/jest-runner@15790

jest-runtime

npm i https://pkg.pr.new/jest-runtime@15790

@jest/schemas

npm i https://pkg.pr.new/@jest/schemas@15790

jest-snapshot

npm i https://pkg.pr.new/jest-snapshot@15790

@jest/snapshot-utils

npm i https://pkg.pr.new/@jest/snapshot-utils@15790

@jest/source-map

npm i https://pkg.pr.new/@jest/source-map@15790

@jest/test-result

npm i https://pkg.pr.new/@jest/test-result@15790

@jest/test-sequencer

npm i https://pkg.pr.new/@jest/test-sequencer@15790

@jest/transform

npm i https://pkg.pr.new/@jest/transform@15790

@jest/types

npm i https://pkg.pr.new/@jest/types@15790

jest-util

npm i https://pkg.pr.new/jest-util@15790

jest-validate

npm i https://pkg.pr.new/jest-validate@15790

jest-watcher

npm i https://pkg.pr.new/jest-watcher@15790

jest-worker

npm i https://pkg.pr.new/jest-worker@15790

pretty-format

npm i https://pkg.pr.new/pretty-format@15790

commit: e1a857c

@cpojer cpojer merged commit 7745acd into jestjs:main Aug 27, 2025
62 of 74 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants