- Updated test files to use a separate test database configuration. - Introduced a new helper module for managing test database operations. - Added a setup file to configure the environment for tests. - Created new database migration scripts to optimize message indexing. - Added a sample environment file for test database configuration.
7 lines
343 B
Bash
7 lines
343 B
Bash
NODE_ENV=test
|
|
# Use a separate database/data area for tests. It may be on the same PostgreSQL host,
|
|
# but the database name must clearly be a test database so destructive test setup
|
|
# cannot touch production data.
|
|
TEST_DATABASE_URL=postgres://root:root@100.108.1.124:5432/hub_test
|
|
DATABASE_URL=postgres://root:root@100.108.1.124:5432/hub_test
|