diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 000000000..d8dda3506 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,4 @@ +coverage/ +dist/ +node_modules/ +public/ \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js index be6f2febc..dc9d0dad4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,7 +1,8 @@ module.exports = { root: true, env: { - node: true + node: true, + es2021: true }, extends: [ 'eslint:recommended', diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 286b1cfb5..db22dcd6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,7 +56,7 @@ jobs: - name: Install dependencies run: | make setup - - name: Test with Jest + - name: Test with Vitest id: test run: | make test diff --git a/Makefile b/Makefile index ad8465855..19c68acc7 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ setup: ## Clean and Install npm dependencies ci: lint test lint: ## Run linting of code. - npm run lint:nofix + npm run lint test: ## Unit testing npm run test:unit diff --git a/babel.config.js b/babel.config.js deleted file mode 100644 index 053075b1a..000000000 --- a/babel.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - presets: [ - '@vue/cli-plugin-babel/preset' - ], - plugins: ['@babel/plugin-proposal-private-methods'] -} diff --git a/devops/cloudbuild-pr.yaml b/devops/cloudbuild-pr.yaml index e3140928f..051467603 100644 --- a/devops/cloudbuild-pr.yaml +++ b/devops/cloudbuild-pr.yaml @@ -16,8 +16,9 @@ steps: - name: node:16.14.2 entrypoint: npm env: - - 'VUE_APP_BUSINESS_EDIT_LD_CLIENT_ID=$_VUE_APP_BUSINESS_EDIT_LD_CLIENT_ID' - 'VUE_APP_ADDRESS_COMPLETE_KEY=$_VUE_APP_ADDRESS_COMPLETE_KEY' + - 'VUE_APP_BUSINESS_EDIT_LD_CLIENT_ID=$_VUE_APP_BUSINESS_EDIT_LD_CLIENT_ID' + - 'VUE_APP_REGISTRIES_SEARCH_API_KEY=$_VUE_APP_REGISTRIES_SEARCH_API_KEY' args: ['run', 'build'] # diff --git a/firebase.json b/firebase.json index 066f0d123..07668cb24 100644 --- a/firebase.json +++ b/firebase.json @@ -20,7 +20,7 @@ { "key" : "X-XSS-Protection", "value" : "1; mode=block" }, { "key": "Content-Security-Policy", - "value": "default-src 'self'; frame-src 'self' *.gov.bc.ca *.hotjar.com *.googleapis.com https://*.nr-data.net https://*.newrelic.com https://*.cac1.pure.cloud; script-src 'self' 'unsafe-eval' 'unsafe-inline' *.gov.bc.ca *.hotjar.com *.googleapis.com https://*.nr-data.net https://*.newrelic.com https://*.cac1.pure.cloud; style-src 'self' 'unsafe-inline' *.cloudflare.com *.googleapis.com; font-src 'self' *.gov.bc.ca *.hotjar.com *.cloudflare.com *.googleapis.com *.gstatic.com *.jsdelivr.net; img-src 'self' data: *.hotjar.com https://*.cac1.pure.cloud; connect-src 'self' *.gov.bc.ca *.launchdarkly.com *.hotjar.com *.postescanada-canadapost.ca *.sentry.io *.apigee.net wss://*.hotjar.com *.hotjar.io https://*.nr-data.net https://shyrka-prod-cac1.s3.ca-central-1.amazonaws.com https://*.newrelic.com https://*.cac1.pure.cloud wss://*.cac1.pure.cloud; manifest-src 'self'; media-src 'self' https://*.cac1.pure.cloud; object-src 'self' https://*.cac1.pure.cloud; child-src 'self' https://*.cac1.pure.cloud;" + "value": "default-src 'self'; frame-src 'self' *.gov.bc.ca *.hotjar.com *.googleapis.com https://*.nr-data.net https://*.newrelic.com https://*.cac1.pure.cloud; script-src 'self' 'unsafe-eval' 'unsafe-inline' *.gov.bc.ca *.hotjar.com *.googleapis.com https://*.nr-data.net https://*.newrelic.com https://*.cac1.pure.cloud; style-src 'self' 'unsafe-inline' *.cloudflare.com *.googleapis.com; font-src 'self' *.gov.bc.ca *.hotjar.com *.cloudflare.com *.googleapis.com *.gstatic.com *.jsdelivr.net; img-src 'self' *.postescanada-canadapost.ca https://*.cac1.pure.cloud data: *.hotjar.com https://*.cac1.pure.cloud; connect-src 'self' *.gov.bc.ca *.launchdarkly.com *.hotjar.com *.postescanada-canadapost.ca *.sentry.io *.apigee.net wss://*.hotjar.com *.hotjar.io https://*.nr-data.net https://shyrka-prod-cac1.s3.ca-central-1.amazonaws.com https://*.newrelic.com https://*.cac1.pure.cloud wss://*.cac1.pure.cloud; manifest-src 'self'; media-src 'self' https://*.cac1.pure.cloud; object-src 'self' https://*.cac1.pure.cloud; child-src 'self' https://*.cac1.pure.cloud;" }, { "key": "Cache-Control", "value": "no-cache, no-store, must-revalidate"}, { "key": "Pragma", "value": "no-cache"}, diff --git a/public/index.html b/index.html similarity index 59% rename from public/index.html rename to index.html index aed53bf3a..32f8783ea 100644 --- a/public/index.html +++ b/index.html @@ -5,9 +5,9 @@