mirror of
https://github.com/tiennm99/rplace.git
synced 2026-10-11 12:28:59 +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.
11 lines
211 B
JavaScript
11 lines
211 B
JavaScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
include: ['test/integration/**/*.test.js'],
|
|
testTimeout: 60000,
|
|
hookTimeout: 60000,
|
|
},
|
|
});
|