2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 19:09:01 +00:00
books/scripts/profile.ts
18alantom d0571a2450 chore: fix all fixable eslint errors in remaining non vue files
- update files to ignore
- delete babel.config.js
2023-06-22 14:22:54 +05:30

24 lines
637 B
TypeScript

import { DatabaseManager } from 'backend/database/manager';
import { setupDummyInstance } from 'dummy';
import { unlink } from 'fs/promises';
import { Fyo } from 'fyo';
import { DummyAuthDemux } from 'fyo/tests/helpers';
import { getTestDbPath } from 'tests/helpers';
async function run() {
const fyo = new Fyo({
DatabaseDemux: DatabaseManager,
AuthDemux: DummyAuthDemux,
isTest: true,
isElectron: false,
});
const dbPath = getTestDbPath();
await setupDummyInstance(dbPath, fyo, 1, 100);
await fyo.close();
await unlink(dbPath);
}
// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();