> job-tracker-ui@0.1.0 test
> jest --runInBand --runTestsByPath src/jobs-view-integration.test.tsx -t localised matching count
node.exe : FAIL src/jobs-view-integration.test.tsx (21.676 s)
At line:1 char:1
+ & "C:\Program Files\nodejs/node.exe" "C:\Program Files\nodejs/node_mo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (FAIL src/jobs-v....tsx (21.676 s):String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
● localised matching count: en table 0 retains membership and changes language without job reads
expect(jest.fn()).toHaveBeenCalledTimes(expected)
Expected number of calls: 2
Received number of calls: 3
52 | fireEvent.click(screen.getByRole('button', { name: 'Change language' }));
53 | await screen.findByText(label(language === 'en' ? 'nb' : 'en'));
> 54 | expect(mockedApi.get).toHaveBeenCalledTimes(calls);
| ^
55 | expect(ids(view === 'board' ? '[data-kanban-card-id]' : '[data-job-row-id]', view === 'board' ?
'data-kanban-card-id' : 'data-job-row-id')).toEqual(jobs.slice(0, count).map(job => job.id));
56 | });
57 |
at toHaveBeenCalledTimes (src/jobs-view-integration.test.tsx:54:25)
● localised matching count: en table 1 retains membership and changes language without job reads
Unable to find an element with the text: 1 matching job. This could be because the text is broken up by multiple
elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
[36m