Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(scripts): add integration test servers to namespace "test:*"
Panagiotis Papadopoulos0cace7f3f9da
diff --git a/package.json b/package.jsonindex 2b6457a20c..aa0756308f 100644--- a/package.json+++ b/package.json@@ -53,13 +53,14 @@"test:coverage": "cross-env TRILIUM_DATA_DIR=./data-test vitest --coverage","test:playwright": "playwright test",+ "test:integration-edit-db": "cross-env TRILIUM_INTEGRATION_TEST=edit TRILIUM_PORT=8081 TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db nodemon src/main.ts",+ "test:integration-mem-db": "cross-env TRILIUM_INTEGRATION_TEST=memory TRILIUM_PORT=8082 TRILIUM_DATA_DIR=./integration-tests/db nodemon src/main.ts",+ "test:integration-mem-db-dev": "cross-env TRILIUM_INTEGRATION_TEST=memory TRILIUM_PORT=8082 TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db nodemon src/main.ts",+"dev:watch-dist": "tsx ./bin/watch-dist.ts","dev:prettier-check": "prettier . --check","dev:prettier-fix": "prettier . --write",- "integration-edit-db": "cross-env TRILIUM_INTEGRATION_TEST=edit TRILIUM_PORT=8081 TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db nodemon src/main.ts",- "integration-mem-db": "cross-env TRILIUM_INTEGRATION_TEST=memory TRILIUM_PORT=8082 TRILIUM_DATA_DIR=./integration-tests/db nodemon src/main.ts",- "integration-mem-db-dev": "cross-env TRILIUM_INTEGRATION_TEST=memory TRILIUM_PORT=8082 TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db nodemon src/main.ts","generate-document": "cross-env nodemon ./bin/generate_document.ts 1000","generate-openapi": "node bin/generate-openapi.js","chore:update-build-info": "tsx bin/update-build-info.ts",diff --git a/playwright.config.ts b/playwright.config.tsindex 9015af28ed..e5377db4b8 100644--- a/playwright.config.ts+++ b/playwright.config.ts@@ -74,7 +74,7 @@ export default defineConfig({/* Run your local dev server before starting the tests */webServer: !process.env.TRILIUM_DOCKER ? {- command: 'npm run integration-mem-db-dev',+ command: 'npm run test:integration-mem-db-dev',url: SERVER_URL,reuseExistingServer: !process.env.CI,} : undefined,