diff --git a/.gitignore b/.gitignore index 9e7a41e6cc..71dd7966fa 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,7 @@ awx/ui_next/src/locales/ awx/ui_next/coverage/ awx/ui_next/build awx/ui_next/.env.local +awx/ui_next/instrumented rsyslog.pid tools/prometheus/data tools/docker-compose/Dockerfile diff --git a/awx/ui_next/.eslintignore b/awx/ui_next/.eslintignore index 096662151e..eb4a217ff6 100644 --- a/awx/ui_next/.eslintignore +++ b/awx/ui_next/.eslintignore @@ -6,4 +6,5 @@ coverage build node_modules dist -images \ No newline at end of file +images +instrumented \ No newline at end of file diff --git a/awx/ui_next/package.json b/awx/ui_next/package.json index fcc2cf72ee..c016217a44 100644 --- a/awx/ui_next/package.json +++ b/awx/ui_next/package.json @@ -30,6 +30,7 @@ }, "devDependencies": { "@babel/polyfill": "^7.8.7", + "@cypress/instrument-cra": "^1.4.0", "@lingui/cli": "^2.9.2", "@lingui/macro": "^2.9.1", "@nteract/mockument": "^1.0.4", @@ -53,6 +54,7 @@ }, "scripts": { "start": "PORT=3001 HTTPS=true DANGEROUSLY_DISABLE_HOST_CHECK=true react-scripts start", + "start-instrumented": "DEBUG=instrument-cra PORT=3001 HTTPS=true DANGEROUSLY_DISABLE_HOST_CHECK=true react-scripts -r @cypress/instrument-cra start", "build": "INLINE_RUNTIME_CHUNK=false react-scripts build", "test": "TZ='UTC' react-scripts test --coverage --watchAll=false", "test-watch": "TZ='UTC' react-scripts test",