mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
refactored scripts to make room for backend unit tests
This commit is contained in:
committed by
Eero Antikainen
parent
e4debbeac1
commit
9f8beda614
+3
-1
@@ -20,13 +20,15 @@
|
||||
"test:up": "docker compose -f docker-compose.test.yml up db-anon backend frontend",
|
||||
"test:down": "docker compose -f docker-compose.test.yml down -v",
|
||||
"test:ci": "docker compose -f docker-compose.test.yml up",
|
||||
"test:backend": "npm run test:unit && npm run test:api",
|
||||
"test:unit": "cd backend && npm run test:unit",
|
||||
"test:api": "npm run test:api:build && npm run test:api:run",
|
||||
"test:api:build": "docker build -t nowdb-api-tests . -f backend/Dockerfile --target api-tests",
|
||||
"test:api:run": "npm run test:api:run:base -- -it nowdb-api-tests",
|
||||
"test:api:run:base": "docker run --rm --network=host --user node --env-file .test.env --volume ./test_data:/usr/src/app/test_data",
|
||||
"test:api:windows": "npm run test:api:build && npm run test:api:run:windows",
|
||||
"test:api:run:windows": "docker run -it --rm --user node --env-file .test.env --volume ./test_data:/usr/src/app/test_data nowdb-api-tests",
|
||||
"test:api:local": "cd backend && npm run test:local",
|
||||
"test:api:local": "cd backend && npm run test:api:local",
|
||||
"test:e2e": "npm run test:e2e:base -- -it --entrypoint cypress cypress/included:13.15.0 run --browser chrome",
|
||||
"test:e2e:base": "docker run --network=host --user node -v $PWD:/e2e -w /e2e",
|
||||
"test:e2e:windows": "npm run test:e2e:base:windows -- -it --entrypoint cypress cypress/included:13.15.0 run --browser chrome",
|
||||
|
||||
Reference in New Issue
Block a user