SYNC: fixed SQLite E2E tests (use absolute folder)

This commit is contained in:
SPRINX0\prochazka
2025-03-05 15:25:08 +01:00
committed by Diflow
parent 0ece662d8c
commit b40168182a
6 changed files with 15 additions and 5 deletions

View File

@@ -17,8 +17,8 @@ function clearTestingData() {
if (fs.existsSync(path.join(baseDir, 'archive-e2etests'))) {
fs.rmdirSync(path.join(baseDir, 'archive-e2etests'), { recursive: true });
}
if (fs.existsSync(path.join(__dirname, '../my_guitar_shop.db'))) {
fs.unlinkSync(path.join(__dirname, '../my_guitar_shop.db'));
if (fs.existsSync(path.join(__dirname, 'tmpdata', 'my_guitar_shop.db'))) {
fs.unlinkSync(path.join(__dirname, 'tmpdata', 'my_guitar_shop.db'));
}
}