Skip to content

Commit f98d9f3

Browse files
committed
chore: clean up Playwright config and ignore unit tests
1 parent c5b849c commit f98d9f3

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

playwright.config.ts

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,19 @@ import { defineConfig, devices } from '@playwright/test';
88
// import path from 'path';
99
// dotenv.config({ path: path.resolve(__dirname, '.env') });
1010

11-
/**
12-
* See https://playwright.dev/docs/test-configuration.
13-
*/
1411
export default defineConfig({
15-
/**
16-
* Global test timeout (ms)
17-
* Increased to 30 seconds to accommodate slow loads
18-
*/
1912
timeout: 30000,
2013
testDir: './tests',
21-
/* Run tests in files in parallel */
14+
testIgnore: ['tests/unit/**'],
2215
fullyParallel: true,
23-
/* Fail the build on CI if you accidentally left test.only in the source code. */
2416
forbidOnly: !!process.env.CI,
25-
/* Retry on CI only */
2617
retries: process.env.CI ? 2 : 0,
27-
/* Opt out of parallel tests on CI. */
2818
workers: process.env.CI ? 1 : undefined,
29-
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
3019
reporter: 'html',
31-
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
32-
/**
33-
* Shared settings for all tests. Sets baseURL for page.goto and API requests.
34-
*/
3520
use: {
3621
baseURL: 'http://localhost:5173',
3722
trace: 'on-first-retry',
3823
},
39-
40-
/* Configure projects for major browsers */
4124
projects: [
4225
{
4326
name: 'chromium',
@@ -76,10 +59,6 @@ export default defineConfig({
7659
// },
7760
],
7861

79-
/**
80-
* Run the SvelteKit dev server before starting Playwright tests.
81-
* Uses Vite default port 5173.
82-
*/
8362
webServer: {
8463
command: 'npm run dev',
8564
url: 'http://localhost:5173',

0 commit comments

Comments
 (0)