- Added Actual account ids and log level to .env.example.
- Fixed timestamp error by downloading the budget after init.
- Hardcoded date in test.
- Separate logging file for configurations.
- Organized test
- More logging in main
- Fixed wrong paths for some files
- Load a .env.test.local file when running tests

Signed-off-by: Martin Berg Alstad <git@martials.no>
This commit is contained in:
2024-12-23 16:47:07 +01:00
parent 29b394baf4
commit 480c0356f9
9 changed files with 144 additions and 33 deletions

View File

@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"start": "node --import=tsx ./src/main.ts | pino-pretty",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"test": "dotenvx run --env-file=.env.test.local -- node --experimental-vm-modules node_modules/jest/bin/jest.js | pino-pretty",
"format": "prettier --write \"./**/*.{js,mjs,ts,md,json}\""
},
"keywords": [],
@ -13,6 +13,7 @@
"license": "ISC",
"dependencies": {
"@actual-app/api": "^24.12.0",
"@dotenvx/dotenvx": "^1.31.3",
"cron": "^3.3.1",
"dotenv": "^16.4.7",
"pino": "^9.5.0",