UNPKG

jest-matchmedia-mock

Version:

Mock for fully testing any media queries with Jest

65 lines (64 loc) 1.84 kB
{ "name": "jest-matchmedia-mock", "description": "Mock for fully testing any media queries with Jest", "version": "1.1.0", "license": "MIT", "author": "Kirill Dyakov", "repository": { "type": "git", "url": "git+https://github.com/dyakovk/jest-matchmedia-mock.git" }, "bugs": { "url": "https://github.com/dyakovk/jest-matchmedia-mock/issues" }, "homepage": "https://github.com/dyakovk/jest-matchmedia-mock#readme", "keywords": [ "jest", "mock", "jest-mock", "jest-matchmedia", "matchmedia-mock", "window.matchmedia", "mediaquery", "media query mock", "typescript" ], "engines": { "node": ">=10" }, "main": "./dist/matchmedia-mock.js", "types": "./dist/matchmedia-mock.d.ts", "files": [ "dist/" ], "scripts": { "compile": "rimraf ./dist/ && tsc -p ./tsconfig.prod.json", "lint": "eslint ./src/ --ext ts", "test": "jest ./src/ --config ./jest.config.json", "test:coverage": "jest --config ./jest.config.json --coverage --coverageReporters=text", "test:coveralls": "jest --config ./jest.config.json --coverage --coverageReporters=text-lcov | coveralls" }, "peerDependencies": { "jest": ">=13" }, "devDependencies": { "@commitlint/cli": "^9.1.2", "@commitlint/config-conventional": "^9.1.1", "@types/jest": "^26.0.8", "@typescript-eslint/eslint-plugin": "^3.8.0", "@typescript-eslint/parser": "^3.8.0", "coveralls": "^3.0.9", "eslint": "^7.6.0", "eslint-config-airbnb-base": "^14.2.0", "eslint-config-prettier": "^6.10.0", "eslint-plugin-import": "^2.22.0", "eslint-plugin-prettier": "^3.1.2", "husky": "^4.2.1", "jest": "^26.2.2", "lint-staged": "^10.2.11", "prettier": "^2.0.5", "rimraf": "^3.0.1", "ts-jest": "^26.1.4", "typescript": "^3.9.7" } }