UNPKG

jsdom-testing-mocks

Version:

A set of tools for emulating browser behavior in jsdom environment

121 lines (119 loc) 3.01 kB
{ "name": "jsdom-testing-mocks", "version": "1.15.2", "author": "Ivan Galiatin", "license": "MIT", "description": "A set of tools for emulating browser behavior in jsdom environment", "repository": { "type": "git", "url": "git+https://github.com/trurl-master/jsdom-testing-mocks.git" }, "keywords": [ "testing", "jsdom", "jest", "vitest", "mock", "Resize Observer API", "Intersection Observer API", "Web Animations API", "WAAPI", "matchMedia", "viewport", "react" ], "main": "dist/index.js", "exports": { "import":{ "types": "./dist/index.d.ts", "default": "./dist/esm/index.js" }, "require": { "types": "./dist/index.d.cts", "default": "./dist/index.js" } }, "typings": "dist/index.d.ts", "files": [ "/dist", "/src", "!/src/**/__tests__/*", "!/src/**/*.test.tsx", "!/src/mocks/web-animations-api/testTools.ts" ], "type": "module", "engines": { "node": ">=14" }, "scripts": { "watch": "tsup --watch", "build": "tsup", "test:jest": "jest", "test:swc": "jest --config ./swcjest.config.ts", "test:vi": "vitest --config ./vitest.config.ts run", "test:browser": "vitest --config ./vitest.browser.config.ts run --browser", "test:main": "npm run test:jest && npm run test:vi && npm run test:swc", "test:examples": "cd examples && npm run test:all", "test": "npm-run-all -p test:jest test:vi test:swc", "lint": "eslint src/ --ext .ts,.tsx", "typecheck": "tsc --noEmit", "prepare": "tsup" }, "prettier": { "printWidth": 80, "semi": true, "singleQuote": true, "trailingComma": "es5" }, "module": "dist/esm/index.js", "tsup": { "entry": [ "src/index.ts" ], "splitting": false, "sourcemap": true, "dts": true, "format": [ "cjs", "esm" ], "clean": true, "legacyOutput": true }, "dependencies": { "bezier-easing": "^2.1.0", "css-mediaquery": "^0.1.2", "puppeteer": "^24.15.0" }, "devDependencies": { "@playwright/test": "^1.54.1", "@swc/core": "^1.3.82", "@swc/jest": "^0.2.29", "@types/css-mediaquery": "^0.1.1", "@types/jest": "^30.0.0", "@typescript-eslint/eslint-plugin": "^8.38.0", "@typescript-eslint/parser": "^8.38.0", "@vitest/browser": "^3.2.4", "@vitest/eslint-plugin": "^1.3.4", "eslint": "^9.32.0", "eslint-config-prettier": "^10.1.8", "eslint-plugin-jest": "^29.0.1", "eslint-plugin-jsx-a11y": "^6.6.0", "eslint-plugin-react": "^7.30.1", "husky": "^9.1.7", "jest": "^30.0.5", "jest-environment-jsdom": "^30.0.5", "jest-fail-on-console": "^3.1.1", "npm-run-all": "^4.1.5", "playwright": "^1.54.1", "prettier": "^3.6.2", "ts-jest": "^29.4.0", "ts-node": "^10.8.2", "tslib": "^2.4.0", "tsup": "^8.5.0", "type-fest": "^4.41.0", "typescript": "^5.8.3", "vite": "^7.0.6", "vitest": "^3.2.4" } }