Как пройти все тесты pull request в редакторе WordPress Gutenberg?
Добрый день. Я сделал запрос на исправление ошибки в редакторе Gutenberg - https://github.com/WordPress/gutenberg/pull/29039, но он не прошел все тесты. Например :
● 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 |
Все тесты - https://github.com/WordPress/gutenberg/pull/29039/checks?check_run_id=1910968291
- Может кто-нибудь объяснить, как работают эти тесты?
- Что мне нужно изменить в коде, чтобы пройти все тесты? благодарить