mirror of
https://github.com/tiennm99/rplace.git
synced 2026-07-18 00:17:05 +00:00
Docker-based tests with real Redis verifying: - BITFIELD write → GETRANGE read round-trip for all 32 colors - Pixel placement at canvas boundaries and various positions - Pixel overwrite correctness - 5-bit boundary isolation (adjacent pixels don't corrupt) - Batch atomicity (100 pixels in single BITFIELD) - Rate limiter Lua script: credit grant, deduction, regen, cap, rejection Test commands: npm test (unit), npm run test:integration (Docker), npm run test:all (both). 82 total tests.
30 lines
857 B
JSON
30 lines
857 B
JSON
{
|
|
"name": "rplace",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "wrangler dev",
|
|
"dev:client": "vite dev",
|
|
"build": "vite build",
|
|
"deploy": "vite build && wrangler deploy",
|
|
"preview": "vite build && wrangler dev",
|
|
"test": "vitest run --config vitest.config.js",
|
|
"test:integration": "vitest run --config vitest.integration.config.js",
|
|
"test:all": "vitest run --config vitest.config.js && vitest run --config vitest.integration.config.js",
|
|
"test:watch": "vitest --config vitest.config.js"
|
|
},
|
|
"dependencies": {
|
|
"@upstash/redis": "^1.34.3",
|
|
"hono": "^4.7.6"
|
|
},
|
|
"devDependencies": {
|
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
"ioredis": "^5.10.1",
|
|
"svelte": "^5.28.2",
|
|
"testcontainers": "^11.14.0",
|
|
"vite": "^6.3.2",
|
|
"vitest": "^4.1.4",
|
|
"wrangler": "^4.14.1"
|
|
}
|
|
}
|