Skip to content

Update dependency strong-mock to v9 (renovate-deps) #11

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

Open
wants to merge 1 commit into
base: renovate-deps
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 15, 2024

This PR contains the following updates:

Package Change Age Confidence
strong-mock ~8.0.1 -> ~9.0.0 age confidence

Release Notes

NiGhTTraX/strong-mock (strong-mock)

v9.0.1

Compare Source

v9.0.0

Compare Source

This version greatly improves error messages and the matcher API. Check the migration guide.

const fn = mock<(x: number, y: number, z: { foo: string }) => number>();
when(() => fn(1, 2, { foo: 'bar' })).thenReturn(42);

fn(1, 2, { foo: 'baz' });
Before After
before after
⚠ BREAKING CHANGES
  • isObject has been replaced by isPlainObject and containsObject
  • Merge isString's optional containing and matching args
  • Rename the toJSON matcher method to toString
  • Don't allow empty partials in containsObject
Features
  • Attach actual/expected args to error instance to enable IDE diffs (7a04a43)
  • Improve isArray diff (a5aaddd)
  • Improve isNumber diff (55647ed)
  • Improve isObject diff (5533bcf)
  • Improve isString diff (5c73fbb)
  • Improve willCapture diff (7d92ce9)
  • Improve colors in UnexpectedCall error message (f326954)
  • Pretty print argument diffs in UnexpectedCall error messages (ba4f6b5)
Bug Fixes
  • Fix isPartial allowing unexpected keys (cc0b881)
  • Fix isPartial not working with interfaces (169b336)
  • isObject now correctly fails for null and undefined (9b50fe4)
  • Fix It docstrings (df7f91a)
  • Handle non string keys in isObject (87cb768)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Sep 15, 2024

Branch automerge failure

This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.


  • Branch has one or more failed status checks

@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch 7 times, most recently from 3e876c8 to cdb13b1 Compare September 22, 2024 08:49
@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch 7 times, most recently from ab83666 to 096f794 Compare September 30, 2024 02:13
@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch 6 times, most recently from 07b40c3 to 4cb043d Compare October 7, 2024 02:45
@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch 6 times, most recently from 9629cd2 to 7571feb Compare October 13, 2024 06:00
@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch 3 times, most recently from 93a9bf7 to 56eb7a3 Compare October 20, 2024 05:41
@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch 4 times, most recently from 9c1a7be to b5b9fb2 Compare April 9, 2025 08:14
@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch 4 times, most recently from 50eafb0 to a696d3b Compare April 19, 2025 11:42
@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch 3 times, most recently from ec0db15 to 43ae11c Compare April 27, 2025 03:39
@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch 3 times, most recently from f95e185 to 707a901 Compare May 4, 2025 15:52
@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch 2 times, most recently from b6ad489 to 1f70cc1 Compare May 11, 2025 12:04
@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch 2 times, most recently from 1985cef to 8f81e44 Compare May 18, 2025 11:53
@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch 2 times, most recently from 4b9bb4a to 128ecc0 Compare May 25, 2025 20:06
@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch 3 times, most recently from 8774507 to f0d18db Compare June 6, 2025 12:38
@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch 2 times, most recently from cde47cc to feaa0ee Compare June 14, 2025 20:04
@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch from feaa0ee to 61ffaf6 Compare June 22, 2025 20:01
@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch from 61ffaf6 to 95ecfb3 Compare July 5, 2025 07:54
@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch from 95ecfb3 to 8cef0fb Compare July 13, 2025 12:11
| datasource | package     | from  | to    |
| ---------- | ----------- | ----- | ----- |
| npm        | strong-mock | 8.0.1 | 9.0.1 |


## [v9.0.1](https://github.com/NiGhTTraX/strong-mock/blob/HEAD/CHANGELOG.md#901-2024-11-23)



## [v9.0.0](https://github.com/NiGhTTraX/strong-mock/blob/HEAD/CHANGELOG.md#900-2024-05-27)

This version greatly improves error messages and the matcher API. Check the [migration guide](MIGRATION.md#migrating-to-v9).

```typescript
const fn = mock<(x: number, y: number, z: { foo: string }) => number>();
when(() => fn(1, 2, { foo: 'bar' })).thenReturn(42);

fn(1, 2, { foo: 'baz' });
```

| Before                         | After                        |
|--------------------------------|------------------------------|
| ![before](media/before-v9.png) | ![after](media/after-v9.png) |

##### ⚠ BREAKING CHANGES

- `isObject` has been replaced by `isPlainObject` and `containsObject`
- Merge `isString`'s optional `containing` and `matching` args
- Rename the `toJSON` matcher method to `toString`
- Don't allow empty partials in `containsObject`

##### Features

- Attach actual/expected args to error instance to enable IDE diffs ([7a04a43](NiGhTTraX/strong-mock@7a04a43))
- Improve `isArray` diff ([a5aaddd](NiGhTTraX/strong-mock@a5aaddd))
- Improve `isNumber` diff ([55647ed](NiGhTTraX/strong-mock@55647ed))
- Improve `isObject` diff ([5533bcf](NiGhTTraX/strong-mock@5533bcf))
- Improve `isString` diff ([5c73fbb](NiGhTTraX/strong-mock@5c73fbb))
- Improve `willCapture` diff ([7d92ce9](NiGhTTraX/strong-mock@7d92ce9))
- Improve colors in UnexpectedCall error message ([f326954](NiGhTTraX/strong-mock@f326954))
- Pretty print argument diffs in UnexpectedCall error messages ([ba4f6b5](NiGhTTraX/strong-mock@ba4f6b5))

##### Bug Fixes

- Fix `isPartial` allowing unexpected keys ([cc0b881](NiGhTTraX/strong-mock@cc0b881))
- Fix `isPartial` not working with interfaces ([169b336](NiGhTTraX/strong-mock@169b336))
- `isObject` now correctly fails for `null` and `undefined` ([9b50fe4](NiGhTTraX/strong-mock@9b50fe4))
- Fix `It` docstrings ([df7f91a](NiGhTTraX/strong-mock@df7f91a))
- Handle non string keys in `isObject` ([87cb768](NiGhTTraX/strong-mock@87cb768))
@renovate renovate bot force-pushed the renovate/renovate-deps-strong-mock-9.x branch from 8cef0fb to d27bd81 Compare July 27, 2025 12:11
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