1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add jsdom lib for testing DOM related functionality

This commit is contained in:
Dmitriy Dubson 2023-10-08 11:19:20 -04:00
parent 05e2186882
commit 2779b4787c
3 changed files with 632 additions and 62 deletions

681
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -42,6 +42,7 @@
"fork-ts-checker-webpack-plugin": "8.0.0", "fork-ts-checker-webpack-plugin": "8.0.0",
"html-loader": "4.2.0", "html-loader": "4.2.0",
"html-webpack-plugin": "5.5.3", "html-webpack-plugin": "5.5.3",
"jsdom": "22.1.0",
"mini-css-extract-plugin": "2.7.6", "mini-css-extract-plugin": "2.7.6",
"postcss": "8.4.24", "postcss": "8.4.24",
"postcss-loader": "7.3.3", "postcss-loader": "7.3.3",
@ -144,8 +145,8 @@
"build:check": "tsc --noEmit", "build:check": "tsc --noEmit",
"escheck": "es-check", "escheck": "es-check",
"lint": "eslint \"./\"", "lint": "eslint \"./\"",
"test": "vitest --watch=false", "test": "vitest --watch=false --config vite.config.ts",
"test:watch": "vitest", "test:watch": "vitest --config vite.config.ts",
"stylelint": "npm run stylelint:css && npm run stylelint:scss", "stylelint": "npm run stylelint:css && npm run stylelint:scss",
"stylelint:css": "stylelint \"src/**/*.css\"", "stylelint:css": "stylelint \"src/**/*.css\"",
"stylelint:scss": "stylelint --config=\".stylelintrc.scss.json\" \"src/**/*.scss\"" "stylelint:scss": "stylelint --config=\".stylelintrc.scss.json\" \"src/**/*.scss\""

8
vite.config.ts Normal file
View file

@ -0,0 +1,8 @@
/// <reference types="vitest" />
import { defineConfig } from 'vite';
export default defineConfig({
test: {
environment: 'jsdom'
}
});