Added tests
This commit is contained in:
27
backend/src/.env.test
Normal file
27
backend/src/.env.test
Normal file
@ -0,0 +1,27 @@
|
||||
# General
|
||||
APP_PORT = 6060
|
||||
APP_HOSTNAME = 'localhost'
|
||||
APP_HOST = 'http://localhost:8080' # frontend url
|
||||
|
||||
# Timezone
|
||||
TZ = 'Europe/Prague'
|
||||
|
||||
CORS_WHITELIST = http://172.15.46.21:8080;http://192.168.0.1:8080
|
||||
JWT_SECRET = '0LyZf4IOx3BWqo3s'
|
||||
|
||||
# MongoDB
|
||||
DB_URI = 'mongodb://username:password@localhost:27017/database?authSource=admin'
|
||||
|
||||
# Sequelize
|
||||
DB_PORT = '3306'
|
||||
DB_HOST = '127.0.0.1'
|
||||
DB_DIALECT = 'mariadb'
|
||||
DB_USERNAME = 'root'
|
||||
DB_PASSWORD = '39In1bx7'
|
||||
DB_DATABASE = 'deguapp'
|
||||
|
||||
# SMTP
|
||||
SMTP_HOST = ''
|
||||
SMTP_USER = ''
|
||||
SMTP_PASS = ''
|
||||
SMTP_FROM = ''
|
@ -72,3 +72,5 @@ Date: "2024-03-06 16:13:40" Type: "Err" Code: "500" Message: "unsupported databa
|
||||
Date: "2024-03-06 16:13:40" Type: "Err" Code: "500" Message: "Can't connect to db
|
||||
SequelizeConnectionError: (conn=3, no: 1049, SQLState: 42000) Unknown database 'deguapp'"
|
||||
Date: "2024-03-06 16:15:55" Type: "Err" Code: "500" Message: "unsupported database mysql"
|
||||
Date: "2024-03-06 16:27:07" Type: "Err" Code: "500" Message: ".env file for test environment does not exists"
|
||||
Date: "2024-03-06 16:28:38" Type: "Err" Code: "500" Message: ".env file for test environment does not exists"
|
||||
|
@ -15,4 +15,4 @@ export function runServer(): void {
|
||||
}
|
||||
|
||||
runServer()
|
||||
const db_connection = database()
|
||||
database()
|
||||
|
Reference in New Issue
Block a user