Add Vitest tests for the languages, router, footer and pages, and a lint:check script

This commit is contained in:
Starystars67 committed 2026-10-08 21:42:28 +01:00
1 parent 9f20c38abe
commit 77c1d01025
11 files changed
+2095 -6

No files matched your search

+20
View File
@@ -72,4 +72,24 @@ export default [
'no-var': 'error',
},
},
// Tests: Vitest's globals (vitest.config.js sets `globals: true`) and the
// browser classes jsdom provides.
{
files: ['tests/**/*.js', 'vitest.config.js'],
languageOptions: {
globals: {
describe: 'readonly',
test: 'readonly',
it: 'readonly',
expect: 'readonly',
vi: 'readonly',
beforeEach: 'readonly',
afterEach: 'readonly',
beforeAll: 'readonly',
afterAll: 'readonly',
globalThis: 'readonly',
HTMLCanvasElement: 'readonly',
},
},
},
]