mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-11 09:51:30 +00:00
14 lines
434 B
TypeScript
14 lines
434 B
TypeScript
const path = require('path');
|
|
const { startApp } = require('./electron.ts');
|
|
|
|
async function main() {
|
|
const { app, context } = await startApp();
|
|
let outputFile = process.argv[2]?.trim();
|
|
if (outputFile && !/\.(ts|js)$/.test(outputFile)) {
|
|
outputFile = path.join(__dirname, '../tests/', outputFile + '.spec.ts');
|
|
}
|
|
await context._enableRecorder({ language: 'playwright-test', mode: 'recording', outputFile });
|
|
}
|
|
|
|
main();
|