Skip to content

Bump jest-styled-components from 7.2.0 to 7.4.0 - #14552

Merged
swissspidy merged 1 commit into
mainfrom
dependabot/npm_and_yarn/jest-styled-components-7.4.0
Jul 7, 2026
Merged

Bump jest-styled-components from 7.2.0 to 7.4.0#14552
swissspidy merged 1 commit into
mainfrom
dependabot/npm_and_yarn/jest-styled-components-7.4.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 7, 2026

Copy link
Copy Markdown
Contributor

Bumps jest-styled-components from 7.2.0 to 7.4.0.

Release notes

Sourced from jest-styled-components's releases.

jest-styled-components@7.4.0

Minor Changes

  • 972060f: Stabilize keyframe names in snapshots by replacing hashed @keyframes identifiers with deterministic placeholders (k0, k1, etc.), matching the existing c0/c1 behavior for class names
  • 74fee2e: Add namespace option to toHaveStyleRule for matching rules generated with StyleSheetManager namespace. Can be set per-assertion or globally via setStyleRuleOptions({ namespace: '#app' }).

Patch Changes

  • a9cb0aa: Fix Vitest compatibility: convert vitest entrypoint to ESM and remove test framework dependency from matcherTest
Changelog

Sourced from jest-styled-components's changelog.

7.4.0

Minor Changes

  • 972060f: Stabilize keyframe names in snapshots by replacing hashed @keyframes identifiers with deterministic placeholders (k0, k1, etc.), matching the existing c0/c1 behavior for class names
  • 74fee2e: Add namespace option to toHaveStyleRule for matching rules generated with StyleSheetManager namespace. Can be set per-assertion or globally via setStyleRuleOptions({ namespace: '#app' }).

Patch Changes

  • a9cb0aa: Fix Vitest compatibility: convert vitest entrypoint to ESM and remove test framework dependency from matcherTest

7.3.1

Patch Changes

  • Fix native toHaveStyleRule crash when element has no style prop (#225, #110)
  • Fix nested at-rules (@media inside @supports and vice versa) not found by toHaveStyleRule (#245)
  • Fix getHTML() creating an empty ServerStyleSheet instead of reading from the global sheet (#401)
  • Fix selector matching with spaces around CSS combinators (> ul > li > a)
  • Fix invalid CSS causing cryptic parse errors — shows the offending rule with context and caret (#147)
  • Fix nested React Native style arrays not flattening correctly
  • Add @container and @layer at-rule support for toHaveStyleRule and the snapshot serializer
  • Add opt-in CSS parse caching via import 'jest-styled-components/cache' (#235)
  • Normalize whitespace in value comparisons (!important, shorthand separators, commas)
  • Clearer validation messages: "Property not found" vs "Value mismatch"
  • Export disableCSSCache from jest-styled-components/cache
  • Use Set for O(1) hash lookups; serializer no longer mutates the parsed CSS AST

7.3.0

Minor Changes

  • 07709eb: Security

    • Bump @adobe/css-tools to ^4.4.0, fixing CVE-2023-48631 (ReDoS) and adding @starting-style support

    Bug Fixes

    • Fix null/undefined children crash in snapshot serializer
    • Fix @media query whitespace mismatch in toHaveStyleRule
    • Normalize spaces after commas in CSS value comparison (fixes rgb() and font-family mismatches)
    • Add word boundaries to class name replacement regex to prevent partial matches
    • Fix Enzyme shallow rendering assertion for nested styled children on SC v6
    • Guard expect and beforeEach calls for Vitest/Bun non-globals mode compatibility

    Features

    • Add selector option to toHaveStyleRule for testing createGlobalStyle styles
    • Add Vitest entry point (jest-styled-components/vitest) with types
    • Add TypeScript declarations for jest-styled-components/serializer and jest-styled-components/native subpaths

... (truncated)

Commits
  • 2d1e663 chore: version packages
  • 67a0bec chore: upgrade Jest from v27 to v29
  • 8cdc898 docs: rewrite README with improved structure and troubleshooting
  • f759d09 chore: clean up stale devDependencies and dead code
  • d64a346 docs: update CLAUDE.md for pnpm, vitest, and new features
  • 62dee7d fix: sync TypeScript types with new exports
  • 74fee2e feat: namespace support, simplify internals, expand test coverage
  • 972060f feat: stabilize keyframe names in snapshots and modernize test infra
  • 983abd0 fix: address PR review feedback
  • 21194b1 ci: use pull_request trigger to test PR branch code
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for jest-styled-components since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [jest-styled-components](https://github.com/styled-components/jest-styled-components) from 7.2.0 to 7.4.0.
- [Release notes](https://github.com/styled-components/jest-styled-components/releases)
- [Changelog](https://github.com/styled-components/jest-styled-components/blob/main/CHANGELOG.md)
- [Commits](https://github.com/styled-components/jest-styled-components/compare/v7.2.0...jest-styled-components@7.4.0)

---
updated-dependencies:
- dependency-name: jest-styled-components
  dependency-version: 7.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added Dependencies Pull requests that update a dependency file JavaScript Pull requests that update JavaScript code. labels Jul 7, 2026
@swissspidy
swissspidy merged commit fd1047b into main Jul 7, 2026
45 checks passed
@swissspidy
swissspidy deleted the dependabot/npm_and_yarn/jest-styled-components-7.4.0 branch July 7, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dependencies Pull requests that update a dependency file JavaScript Pull requests that update JavaScript code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant