1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Disable extensions for settings integration test

This commit is contained in:
Patrik J. Braun 2024-03-26 00:09:32 +01:00
parent 6b3a208794
commit 01e6b60aa4

View File

@ -1,7 +1,7 @@
import * as fs from 'fs'; import * as fs from 'fs';
import {Config} from '../../../../../src/common/config/private/Config'; import {Config} from '../../../../../src/common/config/private/Config';
import {Server} from '../../../../../src/backend/server'; import {Server} from '../../../../../src/backend/server';
import {DatabaseType, ServerConfig} from '../../../../../src/common/config/private/PrivateConfig'; import {DatabaseType, LogLevel, ServerConfig} from '../../../../../src/common/config/private/PrivateConfig';
import {ProjectPath} from '../../../../../src/backend/ProjectPath'; import {ProjectPath} from '../../../../../src/backend/ProjectPath';
import {TAGS} from '../../../../../src/common/config/public/ClientConfig'; import {TAGS} from '../../../../../src/common/config/public/ClientConfig';
import {ObjectManagers} from '../../../../../src/backend/model/ObjectManagers'; import {ObjectManagers} from '../../../../../src/backend/model/ObjectManagers';
@ -22,6 +22,7 @@ describe('SettingsRouter', () => {
await fs.promises.rm(TestHelper.TMP_DIR, {recursive: true, force: true}); await fs.promises.rm(TestHelper.TMP_DIR, {recursive: true, force: true});
Config.Database.type = DatabaseType.sqlite; Config.Database.type = DatabaseType.sqlite;
Config.Database.dbFolder = TestHelper.TMP_DIR; Config.Database.dbFolder = TestHelper.TMP_DIR;
Config.Extensions.enabled = false;
ProjectPath.reset(); ProjectPath.reset();
server = new Server(false); server = new Server(false);