dfeedca524
* test(web): add unit tests for pure helper functions Add vitest configuration and tests for: - relativeTime: time formatting (just now, minutes, hours, days, months, years) - lastPageFromLink: GitHub Link header pagination parsing These are the first tests for the web frontend. The test framework (vitest) was already in package.json but had no config or test files. * test(web): exercise real GitHub helpers --------- Co-authored-by: Hu Qiantao <huqiantao@HudeMacBook-Air.local> Co-authored-by: Hunter B <hmbown@gmail.com>
8 lines
159 B
TypeScript
8 lines
159 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ["lib/**/*.test.ts", "components/**/*.test.tsx"],
|
|
},
|
|
});
|