Add jsdom lib for testing DOM related functionality
This commit is contained in:
parent
05e2186882
commit
2779b4787c
3 changed files with 632 additions and 62 deletions
681
package-lock.json
generated
681
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -42,6 +42,7 @@
|
|||
"fork-ts-checker-webpack-plugin": "8.0.0",
|
||||
"html-loader": "4.2.0",
|
||||
"html-webpack-plugin": "5.5.3",
|
||||
"jsdom": "22.1.0",
|
||||
"mini-css-extract-plugin": "2.7.6",
|
||||
"postcss": "8.4.24",
|
||||
"postcss-loader": "7.3.3",
|
||||
|
@ -144,8 +145,8 @@
|
|||
"build:check": "tsc --noEmit",
|
||||
"escheck": "es-check",
|
||||
"lint": "eslint \"./\"",
|
||||
"test": "vitest --watch=false",
|
||||
"test:watch": "vitest",
|
||||
"test": "vitest --watch=false --config vite.config.ts",
|
||||
"test:watch": "vitest --config vite.config.ts",
|
||||
"stylelint": "npm run stylelint:css && npm run stylelint:scss",
|
||||
"stylelint:css": "stylelint \"src/**/*.css\"",
|
||||
"stylelint:scss": "stylelint --config=\".stylelintrc.scss.json\" \"src/**/*.scss\""
|
||||
|
|
8
vite.config.ts
Normal file
8
vite.config.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
/// <reference types="vitest" />
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
environment: 'jsdom'
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue