Commit 93ab3b4
authored
chore: Migrate test fixture to messenger (#6961)
## Explanation
A test fixture used by the package `@metamask/profile-sync-controller`
has been migrated to use the new `@metamask/messenger` package, in
praration for the `Messenger` being removed from
`@metamask/base-controller`.
## References
Relates to #5626
## Checklist
- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs),
highlighting breaking changes as necessary
- [x] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Switches the contact-syncing test fixture to use @metamask/messenger
with namespaced Messenger and updated types.
>
> - **Tests (contact syncing)**:
> - Replace `@metamask/base-controller` `Messenger` with
`@metamask/messenger` `Messenger` in `__fixtures__/test-utils.ts`.
> - Add `MockAnyNamespace` typing and initialize `Messenger` with
`MOCK_ANY_NAMESPACE`.
> - Update generic types (`ActionConstraint`, `EventConstraint`) and
imports to align with `@metamask/messenger` API.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
caf2a47. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent d48cde0 commit 93ab3b4
File tree
1 file changed
+12
-4
lines changed- packages/profile-sync-controller/src/controllers/user-storage/contact-syncing/__fixtures__
1 file changed
+12
-4
lines changedLines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
41 | 49 | | |
42 | | - | |
| 50 | + | |
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
| |||
0 commit comments