mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
This change adds comprehensive unit and integration tests to cover: 1. `signerKeyManager.js`: Verification of key derivation from signatures and passphrases. 2. `storageService.js`: Tests for saving, retrieving, and decrypting connections, specifically verifying that generic S3 payloads (endpoint, region, bucket) are preserved alongside R2 payloads. 3. `UploadModal.js`: Integration tests mocking the storage service to verify that R2 connection details correctly map to the UI input fields and that the "Unlock" flow updates the UI state. It also introduces `fake-indexeddb` as a dev dependency to enable reliable testing of IndexedDB interactions in the Node/JSDOM test environment.
50 lines
2.0 KiB
JSON
50 lines
2.0 KiB
JSON
{
|
|
"name": "bitvid",
|
|
"private": true,
|
|
"type": "module",
|
|
"version": "1.0.0",
|
|
"scripts": {
|
|
"build": "npm run build:css",
|
|
"build:css": "npx tailwindcss -c tailwind.config.cjs -i css/tailwind.source.css -o css/tailwind.generated.css --minify",
|
|
"build:beacon:bundle": "node scripts/build-beacon.mjs",
|
|
"build:beacon": "npm run build:beacon:bundle && npm run lint:inline-styles",
|
|
"ci:beacon": "npm run build:beacon",
|
|
"format": "prettier --cache --write css/tailwind.source.css css/tokens.css \"docs/**/*.html\" tailwind.config.cjs README.md",
|
|
"lint": "npm run lint:css && npm run lint:hex && npm run lint:inline-styles && npm run lint:tokens && npm run lint:tailwind-brackets && npm run lint:tailwind-colors",
|
|
"lint:css": "stylelint css/tailwind.source.css css/tokens.css",
|
|
"lint:hex": "node scripts/check-hex.js",
|
|
"lint:inline-styles": "node scripts/check-inline-styles.mjs",
|
|
"lint:tokens": "node scripts/check-design-tokens.mjs --check=tokens",
|
|
"lint:tailwind-brackets": "node scripts/check-design-tokens.mjs --check=brackets",
|
|
"lint:tailwind-colors": "node scripts/check-tailwind-colors.mjs",
|
|
"check:css": "npm run build:css",
|
|
"test:visual": "npm run build && npx playwright test",
|
|
"test:visual:update": "npm run build && cross-env UPDATE_VISUAL_BASELINES=1 npx playwright test",
|
|
"test:unit": "node scripts/run-unit-tests.mjs"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.57.0",
|
|
"@tailwindcss/typography": "^0.5.15",
|
|
"autoprefixer": "^10.4.19",
|
|
"cross-env": "^7.0.3",
|
|
"esbuild": "^0.25.10",
|
|
"fake-indexeddb": "^6.2.5",
|
|
"jsdom": "^24.1.3",
|
|
"nostr-tools": "^2.19.4",
|
|
"pixelmatch": "^5.3.0",
|
|
"pngjs": "^7.0.0",
|
|
"postcss": "^8.4.41",
|
|
"prettier": "^3.3.3",
|
|
"prettier-plugin-tailwindcss": "^0.6.5",
|
|
"stylelint": "^16.8.0",
|
|
"stylelint-config-standard": "^36.0.1",
|
|
"tailwindcss": "^3.4.13"
|
|
},
|
|
"license": "GPL-3.0-or-later",
|
|
"dependencies": {
|
|
"@floating-ui/dom": "^1.7.4",
|
|
"path": "^0.12.7",
|
|
"webtorrent": "^1.9.7"
|
|
}
|
|
}
|