mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(monorepo/server): reintroduce tests
This commit is contained in:
parent
c62fb0fb54
commit
6aa6597cb1
Binary file not shown.
@ -30,9 +30,7 @@
|
||||
"docs:build": "typedoc",
|
||||
"build:clean": "rimraf ./dist ./build",
|
||||
"build:prepare-dist": "npm run build:clean && npm run build:ts && npm run build:webpack && tsx ./bin/copy-dist.ts",
|
||||
"test": "npm run client:test && npm run server:test",
|
||||
"server:test": "cross-env TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db TRILIUM_INTEGRATION_TEST=memory vitest",
|
||||
"server:coverage": "cross-env TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db TRILIUM_INTEGRATION_TEST=memory vitest --coverage",
|
||||
"test": "npm run client:test && npm run server:test",
|
||||
"client:test": "cross-env TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db TRILIUM_INTEGRATION_TEST=memory vitest --root src/public/app",
|
||||
"client:coverage": "cross-env TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db TRILIUM_INTEGRATION_TEST=memory vitest --root src/public/app --coverage",
|
||||
"test:playwright": "playwright test --workers 1",
|
||||
|
4
apps/server/.gitignore
vendored
4
apps/server/.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
node_modules
|
||||
build
|
||||
data
|
||||
data
|
||||
data-integration
|
||||
!data-integration/document.db
|
@ -20,7 +20,9 @@
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"build:ts": "tsc",
|
||||
"server:start": "cross-env TRILIUM_DATA_DIR=./data TRILIUM_ENV=dev nodemon src/main.ts"
|
||||
"server:start": "cross-env TRILIUM_DATA_DIR=./data TRILIUM_ENV=dev nodemon src/main.ts",
|
||||
"server:test": "cross-env TRILIUM_ENV=dev TRILIUM_DATA_DIR=./data-integration TRILIUM_INTEGRATION_TEST=memory vitest",
|
||||
"server:coverage": "cross-env TRILIUM_ENV=dev TRILIUM_DATA_DIR=./data-integration TRILIUM_INTEGRATION_TEST=memory vitest --coverage"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "4.21.2",
|
||||
|
Loading…
x
Reference in New Issue
Block a user