Skip to content

Commit

Permalink
Merge branch 'dev' into release-2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Nov 3, 2021
2 parents a65c424 + e6d3396 commit 8c6d78e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/lib/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/renderer/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions packages/server/src/utils/testing/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
});

Expand Down

0 comments on commit 8c6d78e

Please sign in to comment.