Skip to content

Commit

Permalink
tests: add first test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aslam97 committed Jul 12, 2024
1 parent 5cc4615 commit b04a6ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { defineConfig, devices } from '@playwright/experimental-ct-react'
import react from '@vitejs/plugin-react'

const port = 5173
const baseURL = `http://localhost:${port}`

/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
Expand Down Expand Up @@ -32,7 +35,7 @@ export default defineConfig({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: process.env.BASE_URL || 'http://localhost:3000',
baseURL,

ctViteConfig: {
plugins: [react()],
Expand Down

0 comments on commit b04a6ba

Please sign in to comment.