Files
profilarr/deno.json
Sam Chau 7e8068f1fb test: add BaseTest framework with utilities
- Create abstract BaseTest class with lifecycle hooks
  - Add beforeAll/afterAll and beforeEach/afterEach hooks
  - Implement temp directory management (auto cleanup)
  - Add file assertion helpers (exists, contains, matches)
  - Add async utilities (waitFor, waitForFile, sleep)
  - Include example test demonstrating usage
  - Add test tasks to deno.json (test, test:watch)
  - Add @std/assert dependency
2025-10-21 08:04:46 +10:30

44 lines
1.5 KiB
JSON

{
"imports": {
"$config": "./src/utils/config/config.ts",
"$stores": "./src/stores",
"$components": "./src/components",
"$static": "./src/static",
"$db/": "./src/db/",
"$logger": "./src/utils/logger/logger.ts",
"$logger/": "./src/utils/logger/",
"$arr/": "./src/utils/arr/",
"$http/": "./src/utils/http/",
"$api": "./src/utils/api/request.ts",
"$utils/": "./src/utils/",
"@std/assert": "jsr:@std/assert@^1.0.0"
},
"tasks": {
"dev": "APP_BASE_PATH=./temp vite dev",
"build": "vite build && cp -r build/static .",
"compile": "deno task build && deno compile --no-check --allow-all --output profilarr build/mod.ts",
"start": "APP_BASE_PATH=temp PORT=6975 ./profilarr",
"preview": "vite preview",
"prepare": "svelte-kit sync || echo ''",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"format": "prettier --write .",
"lint": "prettier --check . && eslint .",
"test": "APP_BASE_PATH=./temp deno test --allow-read --allow-write --allow-env",
"test:watch": "APP_BASE_PATH=./temp deno test --allow-read --allow-write --allow-env --watch"
},
"compilerOptions": {
"lib": ["deno.window", "dom"],
"strict": true
},
"exclude": ["build/", ".svelte-kit/", "node_modules/"],
"fmt": {
"exclude": ["build/", ".svelte-kit/", "node_modules/"],
"indentWidth": 2,
"useTabs": false
},
"lint": {
"exclude": ["build/", ".svelte-kit/", "node_modules/"]
}
}