mirror of
https://github.com/BeamMP/BeamMP-Website.git
synced 2026-10-26 22:10:59 +00:00
Add Vitest tests for the languages, router, footer and pages, and a lint:check script
This commit is contained in:
1 parent
9f20c38abe
commit
77c1d01025
11 files changed
+2095
-6
No files matched your search
@@ -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',
|
||||
},
|
||||
},
|
||||
},
|
||||
]
|
||||
Reference in new issue
Block a user