1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 10:54:44 +00:00

chore: add workspace vitest configuration for testing with jsdom and coverage

This commit is contained in:
2025-05-19 04:34:13 +07:00
parent c5f34efe05
commit fa726eecc4
8 changed files with 110 additions and 1201 deletions

View File

@@ -28,14 +28,14 @@
],
"exports": {
"./browsers": {
"types": "./dist/browsers.d.ts",
"import": "./dist/browsers.mjs",
"require": "./dist/browsers.cjs",
"types": "./dist/browsers.d.ts"
"require": "./dist/browsers.cjs"
},
"./multi": {
"types": "./dist/multi.d.ts",
"import": "./dist/multi.mjs",
"require": "./dist/multi.cjs",
"types": "./dist/multi.d.ts"
"require": "./dist/multi.cjs"
}
},
"scripts": {
@@ -45,8 +45,6 @@
},
"devDependencies": {
"@robonen/tsconfig": "workspace:*",
"jsdom": "catalog:",
"unbuild": "catalog:",
"vitest": "catalog:"
"unbuild": "catalog:"
}
}

View File

@@ -26,14 +26,11 @@
"files": [
"dist"
],
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"require": "./dist/index.cjs"
}
},
"scripts": {
@@ -43,9 +40,7 @@
},
"devDependencies": {
"@robonen/tsconfig": "workspace:*",
"@vitest/coverage-v8": "catalog:",
"pathe": "catalog:",
"unbuild": "catalog:",
"vitest": "catalog:"
"unbuild": "catalog:"
}
}

View File

@@ -24,14 +24,11 @@
"files": [
"dist"
],
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"require": "./dist/index.cjs"
}
},
"scripts": {
@@ -44,9 +41,7 @@
"@robonen/stdlib": "workspace:*",
"@robonen/tsconfig": "workspace:*",
"@vue/test-utils": "catalog:",
"jsdom": "catalog:",
"unbuild": "catalog:",
"vitest": "catalog:"
"unbuild": "catalog:"
},
"dependencies": {
"vue": "catalog:"