> jest --runInBand --no-cache --runTestsByPath src/correspondence-gmail-import.test.tsx --testNamePattern=changing a choice query invalidates --json --outputFile=E:\Storage\Projects\Active\temp docs\jobjakt-local-build\gmail-read-lifetime\red-debounce.json
FAIL src/correspondence-gmail-import.test.tsx
  ● correspondence Gmail import › Gmail standalone read lifetime › changing a choice query invalidates the previous read during debounce
    expect(element).not.toBeInTheDocument()
    expected document not to contain element, found <li aria-disabled="false" aria-selected="false" class="MuiAutocomplete-option" data-option-index="0" id="_r_d_-option-0" role="option" tabindex="-1">Platform obsolete • Old role</li> instead
      525 |         const { older, newer } = await searchChoices(false);
      526 |         await act(async () => older.resolve(oldChoices));
    > 527 |         expect(screen.queryByRole("option", { name: /Platform obsolete/ })).not.toBeInTheDocument();
          |                                                                                 ^
      528 |         await act(async () => jest.advanceTimersByTime(250));
      529 |         expect(mockedApi.get).toHaveBeenCalledWith("/jobapplications/choices", { params: { q: "Platform", limit: 50 } });
      530 |         await act(async () => newer.resolve(newChoices));
      at Object.toBeInTheDocument (src/correspondence-gmail-import.test.tsx:527:81)
Test Suites: 1 failed, 1 total
Tests:       1 failed, 75 skipped, 76 total
Snapshots:   0 total
Time:        4.96 s
Ran all test suites within paths "src/correspondence-gmail-import.test.tsx".
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\gmail-read-lifetime\red-debounce.json
