Skip to content

Commit

Permalink
env vars for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew-Daniels committed Aug 5, 2024
1 parent 963d37b commit f931578
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/iframe-react-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export default defineConfig({
watch: false,
globals: true,
environment: 'jsdom',
env: {
VITE_PARENT_WINDOW_URL: 'http://localhost:4200',
},
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],

reporters: ['default'],
Expand All @@ -19,7 +22,7 @@ export default defineConfig({
cacheDir: '../../node_modules/.vite/apps/iframe-react-app',

server: {
port: 4200,
port: 4201,
host: 'localhost',
},

Expand Down
3 changes: 3 additions & 0 deletions apps/parent-react-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export default defineConfig({
watch: false,
globals: true,
environment: 'jsdom',
env: {
VITE_IFRAME_URL: 'http://localhost:4201',
},
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],

reporters: ['default'],
Expand Down

0 comments on commit f931578

Please sign in to comment.