Skip to content

Commit

Permalink
🚧 Begin setting up test suite docker service.
Browse files Browse the repository at this point in the history
  • Loading branch information
klondikemarlen committed Aug 8, 2023
1 parent 2bd6780 commit e9d3ce3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/dev
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class DevHelper
end

def test(*args, **kwargs)
run(*%w[api npm run test], *args, **kwargs)
run(*%w[test npm run test], *args, **kwargs)
end

def npm(*args, **kwargs)
Expand Down
17 changes: 17 additions & 0 deletions docker-compose.development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ services:
db:
condition: service_healthy

test:
build:
context: ./src/api
dockerfile: development.Dockerfile
command: /bin/true
env_file:
- ./src/api/.env.development
environment:
<<: *environment-definition
NODE_ENV: test
DB_NAME: sfa_client_test
tty: true
volumes:
- ./src/api:/usr/src/api
depends_on:
db:
condition: service_healthy
db:
build:
context: .
Expand Down
2 changes: 1 addition & 1 deletion src/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "jest",
"test": "jest --watchAll",
"start": "ts-node-dev -r tsconfig-paths/register index.ts",
"build": "tsc && tsc-alias",
"console": "ts-node -r tsconfig-paths/register"
Expand Down

0 comments on commit e9d3ce3

Please sign in to comment.