Sonar-scanner on front-end project fails to find any unit tests or coverage

I would imagine that this is relevant: "Sensor SonarTS Coverage" fails to match path with symbolic link .

I haven’t yet tried to use the workaround advised there. What I did do, however, is implement a hack post-processing step that does a sed replacement on the lcov.info file, changing all the “/home/…” paths to “/opt/app/…” paths. This gets me closer. I now have 76.5% coverage, which is a little below what we had before the upgrade, but this hasn’t been working for a month or so, so I imagine some developer discipline slipped a bit. However, although it shows coverage, it still doesn’t show any unit tests. In the sonar-scanner command line, I have these:

-Dsonar.tests=src '-Dsonar.test.inclusions=**/*.spec.tsx'

And in the build output, I still see lots of lines like:

'src/api/Api.spec.tsx' indexed as test with language 'ts'

So why aren’t the unit tests shown in the resulting project?