Files
2026-05-27 23:47:53 +01:00

118 lines
3.4 KiB
JSON

{
"name": "@suaveplan/testing-dom",
"version": "0.1.0",
"type": "module",
"sideEffects": [
"./dist/setup/polyfills.js",
"./dist/matchers/matchers.js"
],
"description": "DOM/React testing — vitest+bun-test conditional re-exports, createTestConfig, polyfills, render helpers, accessibility-first queries, jest-dom matchers, user-event v14",
"license": "MIT",
"author": "Suaveplan Team",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"vitest": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"bun": {
"types": "./dist/runner/bun-test.d.ts",
"default": "./dist/runner/bun-test.js"
},
"default": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"./config": {
"types": "./dist/config/index.d.ts",
"default": "./dist/config/index.js"
},
"./polyfills": "./dist/setup/polyfills.js",
"./matchers": "./dist/matchers/matchers.js",
"./errors": {
"types": "./dist/errors/index.d.ts",
"default": "./dist/errors/index.js"
},
"./render": {
"types": "./dist/render/index.d.ts",
"default": "./dist/render/index.js"
},
"./queries": {
"types": "./dist/queries/queries.d.ts",
"default": "./dist/queries/queries.js"
},
"./user": {
"types": "./dist/user/setup-user.d.ts",
"default": "./dist/user/setup-user.js"
}
},
"scripts": {
"build": "vite build",
"test": "vitest run --passWithNoTests",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage --passWithNoTests",
"lint": "bunx biome check src/",
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/",
"format": "bunx biome format --write --max-diagnostics 500 src/",
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/",
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
},
"dependencies": {
"@opentelemetry/api": "catalog:observability",
"@testing-library/dom": "catalog:testing",
"@testing-library/jest-dom": "catalog:testing",
"@testing-library/react": "catalog:testing",
"@testing-library/user-event": "catalog:testing",
"happy-dom": "catalog:testing",
"tslib": "catalog:build",
"vitest": "catalog:testing",
"zod": "catalog:forms"
},
"devDependencies": {
"@suaveplan/testing": "workspace:^",
"@types/bun": "catalog:",
"@types/node": "catalog:",
"@types/react": "catalog:testing",
"@types/react-dom": "catalog:testing",
"@vitejs/plugin-react": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"fast-check": "catalog:testing",
"react": "catalog:testing",
"react-dom": "catalog:testing",
"typescript": "catalog:",
"vite": "catalog:build",
"vite-plugin-dts": "catalog:build"
},
"peerDependencies": {
"@vitejs/plugin-react": "*",
"react": ">=18",
"react-dom": ">=18"
},
"peerDependenciesMeta": {
"@vitejs/plugin-react": {
"optional": true
},
"react": {
"optional": true
},
"react-dom": {
"optional": true
}
},
"publishConfig": {
"registry": "https://npmjs.fq.io/",
"access": "public"
},
"files": [
"dist",
"src",
"README.md"
]
}