Skip to content

Update @testing-library/dom and @testing-library/react#3648

Merged
jwhitlock merged 2 commits intomainfrom
testing-library-updates
Jul 13, 2023
Merged

Update @testing-library/dom and @testing-library/react#3648
jwhitlock merged 2 commits intomainfrom
testing-library-updates

Conversation

@jwhitlock
Copy link
Contributor

@jwhitlock jwhitlock commented Jul 11, 2023

dependabot bot added 2 commits July 11, 2023 11:14
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 13.4.0 to 14.0.0.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](testing-library/react-testing-library@v13.4.0...v14.0.0)

---
updated-dependencies:
- dependency-name: "@testing-library/react"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@testing-library/dom](https://github.com/testing-library/dom-testing-library) from 9.2.0 to 9.3.1.
- [Release notes](https://github.com/testing-library/dom-testing-library/releases)
- [Changelog](https://github.com/testing-library/dom-testing-library/blob/main/CHANGELOG.md)
- [Commits](testing-library/dom-testing-library@v9.2.0...v9.3.1)

---
updated-dependencies:
- dependency-name: "@testing-library/dom"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@jwhitlock jwhitlock requested a review from Vinnl July 11, 2023 16:33
"@next/bundle-analyzer": "^13.4.9",
"@next/eslint-plugin-next": "^13.4.9",
"@testing-library/dom": "^9.2.0",
"@testing-library/dom": "^9.3.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should remove @testing-library/dom from devDependencies, since @testing-library/react pulls it in as a dependency.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From Next discussion boards:

The short answer is: it doesn't matter, unless you are only installing dependencies (with npm/yarn install --production). For consistency, I add all build/dev/test tools in devDependencies, and the rest of the stuff in dependencies.

The situation where you might face problems is when you are only installing the dependencies and not devDependencies. Keep in mind Next.js will run your code both in the client and the server, so if you have a server-rendered page, and the app does not have less listed in the dependencies list, then your server will crash when trying to render the page.

@jwhitlock jwhitlock requested review from lloan and removed request for Vinnl July 13, 2023 15:24
Copy link
Contributor

@lloan lloan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jwhitlock jwhitlock added this pull request to the merge queue Jul 13, 2023
Merged via the queue into main with commit ef5632e Jul 13, 2023
@jwhitlock jwhitlock deleted the testing-library-updates branch July 13, 2023 16:01
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