UNPKG

vitest-matchmedia-mock

Version:
45 lines 1.1 kB
{ "name": "vitest-matchmedia-mock", "version": "2.0.1", "description": "mocking window.matchmedia with vitest", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "/dist" ], "scripts": { "test": "vitest", "coverage": "vitest run --coverage", "build": "tsc", "prepare": "npm run build", "lint": "tslint -p tsconfig.json" }, "repository": { "type": "git", "url": "git+https://github.com/nggepe/vitest-matchmedia-mock.git" }, "keywords": [ "mock", "matchmedia", "vitest" ], "author": "", "license": "ISC", "bugs": { "url": "https://github.com/nggepe/vitest-matchmedia-mock/issues" }, "homepage": "https://github.com/nggepe/vitest-matchmedia-mock#readme", "devDependencies": { "@typescript-eslint/eslint-plugin": "^8.21.0", "@typescript-eslint/parser": "^8.21.0", "@vitest/coverage-v8": "^3.0.2", "eslint": "^9.18.0", "jsdom": "^26.0.0", "prettier": "^3.2.4", "tslint-config-prettier": "^1.18.0", "typescript": "^5.3.3" }, "dependencies": { "vitest": "^3.0.2" } }