From d0a7c43be394cdad92b0a24581e0495ad87fe834 Mon Sep 17 00:00:00 2001 From: Mike Clark Date: Wed, 30 Oct 2024 11:36:17 +0000 Subject: [PATCH 1/2] remove unneeded file --- packages/loot-core/init-node.js | 39 --------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 packages/loot-core/init-node.js diff --git a/packages/loot-core/init-node.js b/packages/loot-core/init-node.js deleted file mode 100644 index 3470eccd0e3..00000000000 --- a/packages/loot-core/init-node.js +++ /dev/null @@ -1,39 +0,0 @@ -import { dirname, basename } from 'path'; - -import fetch from 'node-fetch'; -import 'source-map-support/register'; - -// eslint-disable-next-line import/extensions -import bundle from './lib-dist/bundle.desktop.js'; - -global.fetch = fetch; - -async function init(budgetPath) { - const dir = dirname(budgetPath); - const budgetId = basename(budgetPath); - await bundle.initEmbedded('0.0.147', true, dir); - await bundle.lib.send('load-budget', { id: budgetId }); - - return bundle.lib; -} - -async function run() { - const { send } = await init('/tmp/_test-budget'); - const accounts = await send('accounts-get'); - - await send('transaction-add', { - date: '2022-03-20', - account: accounts[0].id, - amount: 1000, - }); - - await new Promise(resolve => { - setTimeout(() => { - resolve(); - }, 5000); - }); - - await send('close-budget'); -} - -run(); From 2ea86003ab9526cbda62822c51197678e93d1568 Mon Sep 17 00:00:00 2001 From: Mike Clark Date: Wed, 30 Oct 2024 11:37:59 +0000 Subject: [PATCH 2/2] release notes --- upcoming-release-notes/3755.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 upcoming-release-notes/3755.md diff --git a/upcoming-release-notes/3755.md b/upcoming-release-notes/3755.md new file mode 100644 index 00000000000..6df2705044c --- /dev/null +++ b/upcoming-release-notes/3755.md @@ -0,0 +1,6 @@ +--- +category: Maintenance +authors: [MikesGlitch] +--- + +Remove unneeded node test file