Update yarn commands (#4644)

* Simplify commands

* Simplify commands

* Migrate all dev commands to project.json

* Fix tests
This commit is contained in:
Charles Bochet
2024-03-25 12:31:18 +01:00
committed by GitHub
parent 1639b2ad0e
commit e576fe0d67
14 changed files with 179 additions and 82 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
export PG_DATABASE_URL=postgres://twenty:twenty@$PG_DATABASE_HOST:$PG_DATABASE_PORT/default
yarn database:setup
yarn database:init:prod
node dist/src/main

View File

@ -4,5 +4,5 @@
DIR="$(cd "$(dirname "$0")" && pwd)"
source $DIR/set-env-test.sh
yarn database:init
yarn jest --config ./test/jest-e2e.json
yarn nx database:reset
yarn nx jest --config ./test/jest-e2e.json