mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-30 10:36:35 +02:00
Tools: Fixed server tests
This commit is contained in:
parent
030b18d7c7
commit
190550fe8e
@ -23,6 +23,7 @@ import MustacheService from '../../services/MustacheService';
|
||||
import uuidgen from '../uuidgen';
|
||||
import { createCsrfToken } from '../csrf';
|
||||
import { cookieSet } from '../cookies';
|
||||
import { parseEnv } from '../../env';
|
||||
|
||||
// Takes into account the fact that this file will be inside the /dist directory
|
||||
// when it runs.
|
||||
@ -73,20 +74,20 @@ export async function beforeAllDb(unitName: string, createDbOptions: CreateDbOpt
|
||||
//
|
||||
// sudo docker compose -f docker-compose.db-dev.yml up
|
||||
|
||||
// await initConfig(Env.Dev, {
|
||||
// await initConfig(Env.Dev, parseEnv({
|
||||
// DB_CLIENT: 'pg',
|
||||
// POSTGRES_DATABASE: unitName,
|
||||
// POSTGRES_USER: 'joplin',
|
||||
// POSTGRES_PASSWORD: 'joplin',
|
||||
// SUPPORT_EMAIL: 'testing@localhost',
|
||||
// }, {
|
||||
// }), {
|
||||
// tempDir: tempDir,
|
||||
// });
|
||||
|
||||
await initConfig(Env.Dev, {
|
||||
await initConfig(Env.Dev, parseEnv({
|
||||
SQLITE_DATABASE: createdDbPath_,
|
||||
SUPPORT_EMAIL: 'testing@localhost',
|
||||
} as any, {
|
||||
}), {
|
||||
tempDir: tempDir,
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user