Good day. I made a pull request to fix a bug in the gutenberg editor - https://github.com/WordPress/gutenberg/pull/29039, but it didn't pass all tests. For instance :
● FormTokenField › suggestions › suggestions that begin with match are boosted
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Error: Uncaught [TypeError: Cannot create property 'label' on string 'sound']
34 | function assertExpectedCalls() {
35 | if ( spy.assertionsNumber === 0 && spy.mock.calls.length > 0 ) {
> 36 | expect( console ).not[ matcherName ]();
| ^
37 | }
38 | }
39 |
All tests - https://github.com/WordPress/gutenberg/pull/29039/checks?check_run_id=1910968291
- Can someone please explain how these tests work?
- What do I need to change in the code to pass all the tests? thank
Aucun commentaire:
Enregistrer un commentaire