test: set up Vitest and add tests for src/index.ts
#282
+2,569
−249
src/index.ts
#282