Files
SnapOtter/package.json
T
ashim-hq babca4cf97 test: comprehensive test coverage expansion (+965 tests)
Add 42 new test files covering all untested tool routes, image engine
internals, AI sidecar bridge, Zustand stores, and cross-format
compatibility. Expand e2e-docker suite with 7 spec files covering all
48 tools against a real Docker container.

Unit tests:
- Image engine: format detection, MIME mapping, metadata parsing, pipeline
- AI bridge: sidecar lifecycle, all 11 tool functions (mocked)
- Web stores: 14 Zustand stores (collage, settings, features, analytics, etc.)
- API helpers: format decoders, page range, file validation

Integration tests:
- 25 tool routes that had zero dedicated tests
- Cross-format matrix: 17 input formats x 3 tools
- Edge cases: zero-byte files, corrupted headers, path traversal, XSS, SQL injection
- Concurrent request handling and pipeline edge cases

E2E-Docker (Playwright against real container):
- 7 spec files: essential, adjustment, conversion, creative, utility, AI, pipeline
- Custom buildMultipart helper for multi-file tool uploads
- AI tools gracefully skip when sidecar not installed

Fixtures:
- Organized test media: formats/ (18 formats) + content/ (17 content types)
- Reduced from 3.1 GB unorganized samples to 33 MB structured fixtures

Bug fix:
- color-adjustments: gamma exposure used invalid single-param gamma() for
  positive values; fixed to use two-param gamma(gammaIn, gammaOut) form
2026-04-23 17:12:02 +08:00

65 lines
2.1 KiB
JSON

{
"name": "ashim",
"version": "1.15.9",
"private": true,
"packageManager": "pnpm@9.15.4",
"scripts": {
"dev": "turbo dev",
"docs:dev": "pnpm --filter @ashim/docs docs:dev",
"build": "turbo build",
"lint": "turbo lint",
"lint:fix": "biome check --write .",
"clean": "turbo clean",
"typecheck": "turbo typecheck",
"test": "vitest run",
"test:watch": "vitest",
"test:unit": "vitest run --config vitest.config.ts tests/unit",
"test:integration": "vitest run --config vitest.config.ts tests/integration",
"test:coverage": "vitest run --coverage",
"test:ci": "vitest run --coverage --reporter=verbose",
"test:all": "vitest run --coverage && playwright test",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:docker": "docker compose -f docker/docker-compose.test.yml up --build --abort-on-container-exit",
"version:sync": "./scripts/sync-version.sh",
"release": "semantic-release",
"release:dry": "semantic-release --dry-run",
"prepare": "husky"
},
"lint-staged": {
"*.{ts,tsx,js,jsx,json}": [
"biome check --write --no-errors-on-unmatched"
]
},
"devDependencies": {
"@biomejs/biome": "^2.4.8",
"@playwright/test": "^1.58.2",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^13.0.1",
"@semantic-release/exec": "^7.1.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^12.0.6",
"@semantic-release/npm": "^13.1.5",
"@semantic-release/release-notes-generator": "^14.1.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/adm-zip": "^0.5.8",
"@vitest/coverage-v8": "^3.2.4",
"adm-zip": "^0.5.17",
"husky": "^9.1.7",
"jsdom": "^29.0.1",
"lint-staged": "^16.4.0",
"semantic-release": "^25.0.3",
"turbo": "^2.4.0",
"typescript": "^5.7.0",
"vitest": "^3.0.0"
},
"license": "AGPL-3.0",
"dependencies": {
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2"
}
}