Skip to content
GitHub Actions / Tests' annotations (🧪 jest-coverage-report-action) failed Apr 15, 2024 in 0s

Test suite run failed

Failed tests: 1/48. Failed suites: 1/20.

Details

Created failed tests' annotations. To disable them, see documentation.

bash
bash
bash
bash
bash
bash
bash
bash

    TypeError: (0 , _NavigationService.navigateAndReset) is not a function

       7 |  */
       8 | export function* startup() {
    >  9 |   setTimeout(() => navigateAndReset('MainScreen'), 1000);
         |                    ^
      10 | }
      11 | 
      12 | export default function* startUpSaga() {

      at Timeout._onTimeout (app/scenes/RootScreen/saga.js:9:20)
      at listOnTimeout (node:internal/timers:569:17)
      at processTimers (node:internal/timers:512:7)

  ● Tests for RootScreen sagas › should ensure that the navigation service is called after waiting for 1000ms

    expect(jest.fn()).toHaveBeenCalled()

    Expected number of calls: >= 1
    Received number of calls:    0

      31 |     method.next();
      32 |     await timeout(1000);
    > 33 |     expect(submitSpy).toHaveBeenCalled();
         |                       ^
      34 |   });
      35 | 
      36 |   it('should ensure that the navigation service is called after waiting for 1000ms', async () => {

      at call (app/scenes/RootScreen/tests/saga.test.js:33:23)
      at tryCatch (node_modules/regenerator-runtime/runtime.js:63:40)
      at Generator._invoke (node_modules/regenerator-runtime/runtime.js:293:22)
      at Generator.call (node_modules/regenerator-runtime/runtime.js:118:21)
      at tryCatch (node_modules/regenerator-runtime/runtime.js:63:40)
      at invoke (node_modules/regenerator-runtime/runtime.js:154:20)
      at fn (node_modules/regenerator-runtime/runtime.js:164:13)
      at tryCallOne (node_modules/react-native/node_modules/promise/lib/core.js:37:12)
      at call (node_modules/react-native/node_modules/promise/lib/core.js:123:15)
      at flush (node_modules/asap/raw.js:50:29)

bash
bash
bash
bash
bash
bash
bash
bash
bash
bash

Annotations

Check failure on line 28 in app/scenes/RootScreen/tests/saga.test.js

See this annotation in the file changed.

@github-actions github-actions / Tests' annotations (🧪 jest-coverage-report-action)

Tests for RootScreen sagas > should ensure that the navigation service is called after waiting for 1000ms

TypeError: (0 , _NavigationService.navigateAndReset) is not a function
    at Timeout._onTimeout (/home/runner/work/react-native-template/react-native-template/app/scenes/RootScreen/saga.js:9:20)
    at listOnTimeout (node:internal/timers:569:17)
    at processTimers (node:internal/timers:512:7)

Error: expect(jest.fn()).toHaveBeenCalled()

Expected number of calls: >= 1
Received number of calls:    0
    at call (/home/runner/work/react-native-template/react-native-template/app/scenes/RootScreen/tests/saga.test.js:33:23)
    at tryCatch (/home/runner/work/react-native-template/react-native-template/node_modules/regenerator-runtime/runtime.js:63:40)
    at Generator._invoke (/home/runner/work/react-native-template/react-native-template/node_modules/regenerator-runtime/runtime.js:293:22)
    at Generator.call (/home/runner/work/react-native-template/react-native-template/node_modules/regenerator-runtime/runtime.js:118:21)
    at tryCatch (/home/runner/work/react-native-template/react-native-template/node_modules/regenerator-runtime/runtime.js:63:40)
    at invoke (/home/runner/work/react-native-template/react-native-template/node_modules/regenerator-runtime/runtime.js:154:20)
    at fn (/home/runner/work/react-native-template/react-native-template/node_modules/regenerator-runtime/runtime.js:164:13)
    at tryCallOne (/home/runner/work/react-native-template/react-native-template/node_modules/react-native/node_modules/promise/lib/core.js:37:12)
    at call (/home/runner/work/react-native-template/react-native-template/node_modules/react-native/node_modules/promise/lib/core.js:123:15)
    at flush (/home/runner/work/react-native-template/react-native-template/node_modules/asap/raw.js:50:29)