Merge pull request #6677 from backstage/feat/analytics-api

Introduce the Analytics API, core events, and a GA implementation provider
This commit is contained in:
Eric Peterson
2021-10-04 18:55:20 +02:00
committed by GitHub
53 changed files with 2130 additions and 40 deletions
@@ -76,7 +76,7 @@ describe('SearchPage', () => {
const expectedPageCursor = 'SOMEPAGE';
// e.g. ?query=petstore&pageCursor=SOMEPAGE&filters[lifecycle][]=experimental&filters[kind]=Component
(useLocation as jest.Mock).mockReturnValueOnce({
(useLocation as jest.Mock).mockReturnValue({
search: `?query=${expectedTerm}&types[]=${expectedTypes[0]}&filters[${expectedFilterField}]=${expectedFilterValue}&pageCursor=${expectedPageCursor}`,
});