18F / analytics-reporter

Lightweight analytics reporting and publishing tool for Digital Analytics Program's Google Analytics 360 data.

Home Page:https://analytics.usa.gov/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update UA related js tests until GA4 tests are ready

scottqueen-bixal opened this issue · comments

Background

Our test suite covers current application and UA requests. We need to update the test to successfuly complete after the application, query schema, and response change moving to the GA4 client.

Our test currently give coverage to functionality for scripts in

/google-analytics - makes requests
/process-results - processes/formates responses
/publish - writes to s3, postgres db

test utilities includes

/support - fixtures and mocks

and the following entry-points

analytics.test.js - module test
index.test.js - application test

User Story

As a developer, I want to run a suit of unit test(s) that cover the applications core functionality

Acceptance Criteria

The current test suit is updated to cover the application and its core script processes using GA4 client requests and responses