Add type declarations and improve test typings

Introduces src/types.d.ts and test/types.d.ts for Cloudflare Workers and test utilities. Enhances JSDoc comments and type annotations across test files for better type safety and clarity. Updates tsconfig.json to use bundler module resolution and include additional type sources. Minor test logic and assertion improvements for robustness.
This commit is contained in:
xixu-me committed 2025-12-08 19:57:48 +08:00
1 parent d2ee1bcd37
commit 4993444f51
17 files changed
+143 -59

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ describe('CRAN Platform Configuration', () => {
testCases.forEach(({ input, expected, description }) => {
const result = transformPath(input, 'cran');
expect(result).toBe(expected, `Failed for ${description}: ${input}`);
expect(result, `Failed for ${description}: ${input}`).toBe(expected);
});
});