dbos-inc / dbos-transact

The TypeScript framework for backends that scale
https://docs.dbos.dev
MIT License
335 stars 22 forks source link

User request: document recommended setup for running dbos-transact testing #421

Closed apoliakov closed 3 months ago

apoliakov commented 3 months ago

Restarting the docker container is not very ergonomic. Can we recommend and document a pattern?

kraftp commented 3 months ago

Can you provide more detail on this request? Are you referring to running DBOS Transact's own unit tests or to testing a DBOS Transact application? We have documentation for the latter here, what should be added to it?

kraftp commented 3 months ago

Spoke to the user on Discord and resolved it. For reference, he was asking how to run DBOS Transact's own unit tests. To do this, run npm run test in an environment where there is a Postgres database available on localhost:5432 and the password for the postgres user is stored in the PGPASSWORD environment variable.