Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/vitest-compat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"jest-styled-components": patch
---

Fix Vitest compatibility: convert vitest entrypoint to ESM and remove test framework dependency from matcherTest
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- "main"
pull_request_target:
pull_request:

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20
v24
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jest-styled-components",
"version": "7.3.1",
"version": "7.3.2",
"description": "Jest utilities for Styled Components",
"type": "commonjs",
"packageManager": "pnpm@10.32.1",
Expand All @@ -24,11 +24,12 @@
],
"license": "MIT",
"scripts": {
"test": "pnpm test:web && pnpm test:native && pnpm test:preact && pnpm lint:pkg",
"test": "pnpm test:web && pnpm test:native && pnpm test:preact && pnpm test:vitest && pnpm lint:pkg",
"test:web": "jest --color",
"test:web:watch": "jest --watch",
"test:native": "jest --color --config .jest.native.json",
"test:preact": "jest --color --config .jest.preact.json",
"test:vitest": "pnpm --filter vitest-entry test",
"lint:pkg": "publint --pack npm && attw --pack .",
"prepare": "husky"
},
Expand All @@ -50,6 +51,7 @@
"enzyme-to-json": "^3.3.1",
"husky": "^9.1.7",
"jest": "^27.3.1",
"jest-environment-jsdom": "^27.5.1",
"lint-staged": "^15.5.2",
"preact": "^10.0.0-beta.2",
"preact-render-to-json": "^3.6.6",
Expand Down Expand Up @@ -86,7 +88,8 @@
"testEnvironment": "jsdom",
"testPathIgnorePatterns": [
"<rootDir>/test/native",
"<rootDir>/test/preact"
"<rootDir>/test/preact",
"<rootDir>/test/vitest"
]
},
"engines": {
Expand All @@ -99,7 +102,7 @@
"overrides": {
"micromatch": ">=4.0.8",
"braces": ">=3.0.3",
"http-proxy-agent": ">=5.0.0",
"http-proxy-agent": "^7.0.0",
"hermes-engine": ">=0.10.0"
}
}
Expand Down
Loading
Loading