Files
player/vitest.config.ts
T
hibna becc9efc7f Add IPTV (.ts) stream support and tests
Introduced detection and support for MPEG-TS (.ts) IPTV streams in videoProtocol, updated documentation and examples to reflect IPTV support, and added comprehensive tests for protocol detection. Mock implementations for flv.js and hls.js were added for testing, and vitest config now aliases these libraries to their mocks.
2025-11-04 05:24:21 +03:00

30 lines
688 B
TypeScript

import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
test: {
globals: true,
environment: 'jsdom',
setupFiles: './src/test/setup.ts',
css: true,
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/',
'src/test/',
'**/*.d.ts',
'**/*.config.*',
'**/dist/',
],
},
},
resolve: {
alias: {
'flv.js': new URL('./src/test/mocks/flv.mock.ts', import.meta.url).pathname,
'hls.js': new URL('./src/test/mocks/hls.mock.ts', import.meta.url).pathname,
},
},
});