adds eslint

This commit is contained in:
geoffsee
2025-06-24 17:29:52 -04:00
committed by Geoff Seemueller
parent 9698fc6f3b
commit 02c3253343
169 changed files with 4896 additions and 4804 deletions

View File

@@ -1,9 +1,10 @@
import { describe, it, expect, vi } from 'vitest';
import { createRouter } from '../api-router.ts';
// Mock the vike/server module
vi.mock('vike/server', () => ({
renderPage: vi.fn()
renderPage: vi.fn(),
}));
describe('api-router', () => {
@@ -13,4 +14,4 @@ describe('api-router', () => {
expect(router).toBeDefined();
expect(typeof router.handle).toBe('function');
});
});
});