This commit is contained in:
Ibrahima G. Coulibaly
2024-06-28 16:44:18 +01:00
parent f88536ebe3
commit c252ed3d20
4 changed files with 16 additions and 16 deletions

23
.idea/workspace.xml generated
View File

@@ -5,6 +5,9 @@
</component>
<component name="ChangeListManager">
<list default="true" id="b30e2810-c4c1-4aad-b134-794e52cc1c7d" name="Changes" comment="fix: ci">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/playwright.config.ts" beforeDir="false" afterPath="$PROJECT_DIR$/playwright.config.ts" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
@@ -104,7 +107,7 @@
<recent name="C:\Users\HP\IdeaProjects\omni-tools\src\tools" />
</key>
</component>
<component name="RunManager" selected="npm.dev">
<component name="RunManager" selected="npm.test:e2e:run">
<configuration name="dev" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
@@ -198,14 +201,6 @@
<workItem from="1719492452780" duration="8000" />
<workItem from="1719496624579" duration="6148000" />
</task>
<task id="LOCAL-00034" summary="fix: readme">
<option name="closed" value="true" />
<created>1719165600245</created>
<option name="number" value="00034" />
<option name="presentableId" value="LOCAL-00034" />
<option name="project" value="LOCAL" />
<updated>1719165600245</updated>
</task>
<task id="LOCAL-00035" summary="feat: create tool script">
<option name="closed" value="true" />
<created>1719169082452</created>
@@ -590,7 +585,15 @@
<option name="project" value="LOCAL" />
<updated>1719588854025</updated>
</task>
<option name="localTasksCounter" value="83" />
<task id="LOCAL-00083" summary="fix: ci">
<option name="closed" value="true" />
<created>1719589144843</created>
<option name="number" value="00083" />
<option name="presentableId" value="LOCAL-00083" />
<option name="project" value="LOCAL" />
<updated>1719589144843</updated>
</task>
<option name="localTasksCounter" value="84" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">

View File

@@ -63,7 +63,7 @@ npm run test
- For e2e tests
```bash
npm run test:e2e:run
npm run test:e2e
```
### Contributors

View File

@@ -17,8 +17,7 @@
"build": "tsc && vite build",
"serve": "vite preview",
"test": "vitest",
"test:e2e": "start-server-and-test dev http://localhost:5173 test:e2e:run",
"test:e2e:run": "playwright test",
"test:e2e": "playwright test",
"test:ui": "vitest --ui",
"script:create:tool": "node scripts/create-tool.mjs",
"lint": "eslint src --max-warnings=0 --fix",

View File

@@ -1,14 +1,12 @@
import { defineConfig, devices } from '@playwright/test';
const isCI = !!process.env.CI;
export default defineConfig({
testDir: './src',
testMatch: /\.e2e\.(spec\.)?ts$/,
fullyParallel: true,
retries: 1,
use: {
baseURL: isCI ? 'http://localhost:4173' : 'http://localhost:5173',
baseURL: 'http://localhost:4173',
trace: 'on-first-retry'
},
webServer: {