mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 11:16:40 +00:00
fix(test): Moved playwright folder from nc-gui
This commit is contained in:
11
tests/playwright/setup/sqliteExec.ts
Normal file
11
tests/playwright/setup/sqliteExec.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
const { PromisedDatabase } = require('promised-sqlite3');
|
||||
const sqliteDb = new PromisedDatabase();
|
||||
|
||||
async function sqliteExec(query) {
|
||||
const rootProjectDir = __dirname.replace('/scripts/playwright/setup', '');
|
||||
await sqliteDb.open(`${rootProjectDir}/packages/nocodb/test_noco.db`);
|
||||
|
||||
await sqliteDb.run(query);
|
||||
}
|
||||
|
||||
export default sqliteExec;
|
||||
Reference in New Issue
Block a user