Skip to content

TagSpaces is an offline, open source, document manager with tagging support

e2e fix

sytolkbd5cf41f3d89
diff --git a/tests/e2e/hook.js b/tests/e2e/hook.js
index 4843bf9f7..0cdd267ce 100644
--- a/tests/e2e/hook.js
+++ b/tests/e2e/hook.js
@@ -81,7 +81,7 @@ export async function copyExtConfig(extconfig = 'extconfig-with-welcome.js') {
__dirname,
'..',
'..',
- global.isWeb ? 'web' : 'app',
+ global.isWeb ? 'web' : 'release/app/dist/renderer',
'extconfig.js',
);
await fse.copy(srcDir, destDir);
@@ -93,7 +93,7 @@ export async function removeExtConfig() {
__dirname,
'..',
'..',
- global.isWeb ? 'web' : 'app',
+ global.isWeb ? 'web' : 'release/app/dist/renderer',
'extconfig.js',
),
);
diff --git a/tests/global-setup.js b/tests/global-setup.js
index ff1406c4a..2814fdd49 100644
--- a/tests/global-setup.js
+++ b/tests/global-setup.js
@@ -11,7 +11,12 @@ module.exports = async function () {
'scripts',
'extconfig-with-welcome.js',
);
- let destDir = path.join(__dirname, '..', 'app', 'extconfig.js');
+ let destDir = path.join(
+ __dirname,
+ '..',
+ 'release/app/dist/renderer',
+ 'extconfig.js',
+ );
fse.copySync(srcDir, destDir);
};
diff --git a/tests/setup-functions.js b/tests/setup-functions.js
index 883744563..7d1fdec72 100644
--- a/tests/setup-functions.js
+++ b/tests/setup-functions.js
@@ -85,7 +85,7 @@ export async function startWebServer() {
);
if (global.isMac) {
//todo copyfiles do not work for MacOS
- await app.use(serveStatic('../app'));
+ // await app.use(serveStatic('../app'));
}
app.server = app.listen(port);
console.log('Webserver listining on http://127.0.0.1:' + port);