-
-
Notifications
You must be signed in to change notification settings - Fork 146
fix: vitest compatibility — ESM entrypoint and framework-agnostic matcher #460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2fa53b9
fix(vitest): ESM entrypoint and framework-agnostic matcher
quantizor 8b12ae1
test(vitest): add vitest workspace with integration tests
quantizor f5753b9
chore: update Node to v24 LTS and fix dev deps
quantizor 5755062
ci: use pull_request trigger to test PR branch code
quantizor 92a015e
fix: address PR review feedback
quantizor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ on: | |
| push: | ||
| branches: | ||
| - "main" | ||
| pull_request_target: | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| v20 | ||
| v24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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-prerelease.0", | ||
| "description": "Jest utilities for Styled Components", | ||
| "type": "commonjs", | ||
| "packageManager": "[email protected]", | ||
|
|
@@ -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" | ||
| }, | ||
|
|
@@ -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", | ||
|
|
@@ -86,7 +88,8 @@ | |
| "testEnvironment": "jsdom", | ||
| "testPathIgnorePatterns": [ | ||
| "<rootDir>/test/native", | ||
| "<rootDir>/test/preact" | ||
| "<rootDir>/test/preact", | ||
| "<rootDir>/test/vitest" | ||
| ] | ||
| }, | ||
| "engines": { | ||
|
|
@@ -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" | ||
| } | ||
| } | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.