chore(server-e2e): allow starting via VS Code

This commit is contained in:
Elian Doran
2025-05-01 13:39:10 +03:00
parent b64521d250
commit a083418906
5 changed files with 31 additions and 98 deletions

View File

@@ -8,5 +8,8 @@
"client",
"server"
]
},
"devDependencies": {
"dotenv": "16.5.0"
}
}

View File

@@ -1,17 +1,16 @@
import { defineConfig, devices } from '@playwright/test';
import { nxE2EPreset } from '@nx/playwright/preset';
import { workspaceRoot } from '@nx/devkit';
import path from 'path';
require('dotenv').config({
path: path.resolve(__dirname, ".env")
});
// For CI, you may want to set BASE_URL to the deployed application.
const port = process.env['TRILIUM_PORT'];
const baseURL = process.env['BASE_URL'] || `http://localhost:${port}`;
/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// require('dotenv').config();
/**
* See https://playwright.dev/docs/test-configuration.
*/

View File

@@ -3,7 +3,8 @@
"compilerOptions": {
"allowJs": true,
"outDir": "out-tsc/playwright",
"sourceMap": false
"sourceMap": false,
"verbatimModuleSyntax": false
},
"include": [
"**/*.ts",