mirror of
https://github.com/zadam/trilium.git
synced 2026-05-06 06:55:30 +02:00
chore(server-e2e): allow starting via VS Code
This commit is contained in:
@@ -8,5 +8,8 @@
|
||||
"client",
|
||||
"server"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"dotenv": "16.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"outDir": "out-tsc/playwright",
|
||||
"sourceMap": false
|
||||
"sourceMap": false,
|
||||
"verbatimModuleSyntax": false
|
||||
},
|
||||
"include": [
|
||||
"**/*.ts",
|
||||
|
||||
Reference in New Issue
Block a user