function testMatchedEntry(targetExportedId, queryResult, importedByFiles = []) {
    const matchedEntry = queryResult.queryOutput.find(
      r => r.exportSpecifier.id === targetExportedId,
    );

    const [name, filePath, project] = targetExportedId.split('::');
    expect(matchedEntry.exportSpecifier).to.deep.equal({
      name,
      filePath,
      project,
      id: targetExportedId,
    });
    expect(matchedEntry.matchesPerProject[0].project).to.equal('importing-target-project');
    expect(matchedEntry.matchesPerProject[0].files).to.deep.equal(importedByFiles);
  }
Possible other checks (although already tested in unit tests of find-import/find-exports):
- dynamic imports
- default and named specifiers in one declaration
- renamed imports
- ...?