From 1a7297abf46013689cee1d4a87cef2c8d8324fc5 Mon Sep 17 00:00:00 2001 From: Bill Himmelsbach Date: Wed, 25 Feb 2026 11:21:17 -0800 Subject: [PATCH 1/2] spike(test): does this work? --- .github/workflows/test.yml | 3 +++ cypress.config.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b67f17356..994b7af11 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,6 +24,9 @@ jobs: - name: Install dependencies run: yarn + - name: Start server + run: yarn start & + - name: Run unit tests (Vitest) env: MAPBOX_ACCESS_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN }} diff --git a/cypress.config.js b/cypress.config.js index 54210488f..494c32db8 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -6,8 +6,8 @@ module.exports = defineConfig({ chromeWebSecurity: false, video: true, env: { - HOST: 'https://ffiec.cfpb.gov', - ENVIRONMENT: 'NOT CI', + HOST: 'http://localhost:3000', + ENVIRONMENT: 'CI', USERNAME: 'frontend.testing@mailinator.com', INSTITUTION: 'FRONTENDTESTBANK9999', TEST_DELAY: 1000, From 6923891e7b5f93c0a95e3e3f7ad5ab052c53d60e Mon Sep 17 00:00:00 2001 From: Bill Himmelsbach Date: Wed, 25 Feb 2026 11:24:18 -0800 Subject: [PATCH 2/2] spike(mapbox): garbage key --- cypress.config.js | 1 + vite.config.js | 22 +--------------------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/cypress.config.js b/cypress.config.js index 494c32db8..ed874465e 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -10,6 +10,7 @@ module.exports = defineConfig({ ENVIRONMENT: 'CI', USERNAME: 'frontend.testing@mailinator.com', INSTITUTION: 'FRONTENDTESTBANK9999', + MAPBOX_ACCESS_TOKEN: 'XXXXXXXX', TEST_DELAY: 1000, ACTION_DELAY: 1000, NAV_DELAY: 5000, diff --git a/vite.config.js b/vite.config.js index cebd8bfbf..327135a80 100644 --- a/vite.config.js +++ b/vite.config.js @@ -8,26 +8,6 @@ import svgr from 'vite-plugin-svgr' dotenv.config() if (!process.env.MAPBOX_ACCESS_TOKEN) { - throw new Error( - ` - __ __ _______ __ __ _______ _______ ______ _______ _______ _______ -| | | || || | | | | || || _ | | || || | -| |_| || _ || | | | | ___|| _ || | || | ___|| _ ||_ _| -| || | | || |_| | | |___ | | | || |_||_ | | __ | | | | | | -|_ _|| |_| || | | ___|| |_| || __ || || || |_| | | | - | | | || | | | | || | | || |_| || | | | - |___| |_______||_______| |___| |_______||___| |_||_______||_______| |___| - _______ _______ __ __ _______ _______ __ __ ___ __ _ _______ -| || || |_| || || || | | || | | | | || | -| _____|| _ || || ___||_ _|| |_| || | | |_| || ___| -| |_____ | | | || || |___ | | | || | | || | __ -|_____ || |_| || || ___| | | | || | | _ || || | - _____| || || ||_|| || |___ | | | _ || | | | | || |_| | -|_______||_______||_| |_||_______| |___| |__| |__||___| |_| |__||_______| - -👉 MAPBOX_ACCESS_TOKEN environment variable is not defined. Please set it in your .env file. 👈 -`, - ) } dns.setDefaultResultOrder('verbatim') @@ -39,7 +19,7 @@ export default () => { environment: 'jsdom', globals: true, include: ['src/**/__tests__/**/*.{test,spec}.{js,jsx}'], - exclude: ['oldTests/**', 'cypress/**', '**/node_modules/**'] + exclude: ['oldTests/**', 'cypress/**', '**/node_modules/**'], }, define: { 'import.meta.env.MAPBOX_ACCESS_TOKEN': JSON.stringify(