Files
player/vitest.config.ts
T
hibna b0e278afb5 Add MPEG-TS support and related utilities
Introduces MPEG-TS streaming support by adding mpegts.js as an optional dependency, updating keywords, and implementing new utility modules for MPEG-TS loading and setup. Updates VideoElement and videoProtocol logic to handle MPEG-TS streams, adds corresponding tests and mocks, and improves local settings for npm install.
2025-11-04 06:36:21 +03:00

31 lines
777 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,
'mpegts.js': new URL('./src/test/mocks/mpegts.mock.ts', import.meta.url).pathname,
},
},
});