Skip to content

feat: add vitest-given package#25

Merged
shairez merged 4 commits into
hirezio:masterfrom
jsaguet:vitest-given
Feb 1, 2026
Merged

feat: add vitest-given package#25
shairez merged 4 commits into
hirezio:masterfrom
jsaguet:vitest-given

Conversation

@jsaguet

@jsaguet jsaguet commented Dec 26, 2025

Copy link
Copy Markdown
Contributor

This PR adds a new package vitest-given that is compatible with vitest.

This is a requirement to add support for vitest to auto-spies.

@shairez

shairez commented Jan 31, 2026

Copy link
Copy Markdown
Member

thanks @jsaguet

just updated the repo, please fix the conflicts and let's get it merged

@changeset-bot

changeset-bot Bot commented Feb 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3c1cba7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hirez_io/vitest-given Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jsaguet jsaguet force-pushed the vitest-given branch 3 times, most recently from ee702c2 to b22a2b7 Compare February 1, 2026 11:02
@jsaguet

jsaguet commented Feb 1, 2026

Copy link
Copy Markdown
Contributor Author

@shairez I've rebased the PR and have made a few adjustments. The CI is failing regarding @hirez_io/vitest-given not existing which is expected I guess. Do you know how to fix that?

I've generated a chanset to major bump vitest given, let me know if that was the correct thing to do since it would be the first release of the vitest package.

Comment thread .changeset/many-webs-lick.md Outdated
@@ -0,0 +1,5 @@
---
'@hirez_io/vitest-given': major

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is this a breaking change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I removed the file

@shairez shairez Feb 1, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think you should remove, I think you should just change to "minor" because it's a feature, just not a breaking one

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(pay attention that I've committed and pushed a fix to the CI for now, so don't force push your change or it'll mess up stuff)

Comment thread packages/vitest-given/package.json Outdated
"peerDependencies": {
"vitest": "^4.0.0"
},
"devDependencies": {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

please move the depDependencies to the root

@pkg-pr-new

pkg-pr-new Bot commented Feb 1, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@hirez_io/jasmine-given@25
npm i https://pkg.pr.new/@hirez_io/jest-given@25
npm i https://pkg.pr.new/@hirez_io/karma-jasmine-given@25

commit: 3c1cba7

@shairez

shairez commented Feb 1, 2026

Copy link
Copy Markdown
Member

OK I've added a temp fix for now, seems to be working

we do need the changeset file for it to be released, just put it on minor please (and you can edit the MD file to explain how to install or point to the README so it'll get into the release notes)

@jsaguet jsaguet force-pushed the vitest-given branch 2 times, most recently from 5f448ca to 76161c6 Compare February 1, 2026 13:29
@jsaguet

jsaguet commented Feb 1, 2026

Copy link
Copy Markdown
Contributor Author

Thanks !

Is this changeset ok ?

Comment thread .changeset/witty-shrimps-search.md Outdated
'@hirez_io/vitest-given': minor
---

Add @hirez_io/vitest-given package

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
Add @hirez_io/vitest-given package
FEAT: Add `@hirez_io/vitest-given` package

Comment thread .changeset/witty-shrimps-search.md Outdated

Add @hirez_io/vitest-given package

See the package README for installation instructions.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
See the package README for installation instructions.
See the [installation instructions](https://github.com/hirezio/given/tree/master/packages/vitest-given).

@shairez

shairez commented Feb 1, 2026

Copy link
Copy Markdown
Member

Thanks !

Is this changeset ok ?

thanks, added suggestions

@shairez

shairez commented Feb 1, 2026

Copy link
Copy Markdown
Member

Thanks @jsaguet !

@shairez shairez merged commit 7ecace3 into hirezio:master Feb 1, 2026
3 checks passed
@github-actions github-actions Bot mentioned this pull request Feb 1, 2026
@shairez

shairez commented Feb 1, 2026

Copy link
Copy Markdown
Member

vitest-given has just been released 🎉

@all-contributors please add @jsaguet for code, maintenance

@allcontributors

Copy link
Copy Markdown
Contributor

@shairez

I've put up a pull request to add @jsaguet! 🎉

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