package.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. {
  2. "name": "@testing-library/jest-dom",
  3. "version": "6.1.6",
  4. "description": "Custom jest matchers to test the state of the DOM",
  5. "main": "dist/index.js",
  6. "module": "dist/index.mjs",
  7. "exports": {
  8. ".": {
  9. "require": {
  10. "types": "./types/index.d.ts",
  11. "default": "./dist/index.js"
  12. },
  13. "import": {
  14. "types": "./types/index.d.ts",
  15. "default": "./dist/index.mjs"
  16. }
  17. },
  18. "./jest-globals": {
  19. "require": {
  20. "types": "./types/jest-globals.d.ts",
  21. "default": "./dist/jest-globals.js"
  22. },
  23. "import": {
  24. "types": "./types/jest-globals.d.ts",
  25. "default": "./dist/jest-globals.mjs"
  26. }
  27. },
  28. "./matchers": {
  29. "require": {
  30. "types": "./types/matchers.d.ts",
  31. "default": "./dist/matchers.js"
  32. },
  33. "import": {
  34. "types": "./types/matchers.d.ts",
  35. "default": "./dist/matchers.mjs"
  36. }
  37. },
  38. "./vitest": {
  39. "require": {
  40. "types": "./types/vitest.d.ts",
  41. "default": "./dist/vitest.js"
  42. },
  43. "import": {
  44. "types": "./types/vitest.d.ts",
  45. "default": "./dist/vitest.mjs"
  46. }
  47. },
  48. "./package.json": "./package.json"
  49. },
  50. "types": "types/index.d.ts",
  51. "engines": {
  52. "node": ">=14",
  53. "npm": ">=6",
  54. "yarn": ">=1"
  55. },
  56. "scripts": {
  57. "build": "rollup -c",
  58. "format": "kcd-scripts format",
  59. "lint": "kcd-scripts lint",
  60. "setup": "npm install && npm run validate -s",
  61. "test": "kcd-scripts test",
  62. "test:update": "npm test -- --updateSnapshot --coverage",
  63. "test:types": "tsc -p types/__tests__/jest && tsc -p types/__tests__/jest-globals && tsc -p types/__tests__/vitest",
  64. "validate": "kcd-scripts validate && npm run test:types"
  65. },
  66. "files": [
  67. "dist",
  68. "types",
  69. "*.d.ts",
  70. "jest-globals.js",
  71. "matchers.js",
  72. "vitest.js"
  73. ],
  74. "keywords": [
  75. "testing",
  76. "dom",
  77. "jest",
  78. "jsdom"
  79. ],
  80. "author": "Ernesto Garcia <gnapse@gmail.com> (http://gnapse.github.io)",
  81. "license": "MIT",
  82. "dependencies": {
  83. "@adobe/css-tools": "^4.3.2",
  84. "@babel/runtime": "^7.9.2",
  85. "aria-query": "^5.0.0",
  86. "chalk": "^3.0.0",
  87. "css.escape": "^1.5.1",
  88. "dom-accessibility-api": "^0.5.6",
  89. "lodash": "^4.17.15",
  90. "redent": "^3.0.0"
  91. },
  92. "devDependencies": {
  93. "@jest/globals": "^29.6.2",
  94. "@rollup/plugin-commonjs": "^25.0.4",
  95. "expect": "^29.6.2",
  96. "jest-environment-jsdom-sixteen": "^1.0.3",
  97. "jest-watch-select-projects": "^2.0.0",
  98. "jsdom": "^16.2.1",
  99. "kcd-scripts": "^14.0.0",
  100. "pretty-format": "^25.1.0",
  101. "rollup": "^3.28.1",
  102. "rollup-plugin-delete": "^2.0.0",
  103. "typescript": "^5.1.6",
  104. "vitest": "^0.34.1"
  105. },
  106. "peerDependencies": {
  107. "@jest/globals": ">= 28",
  108. "@types/jest": ">= 28",
  109. "jest": ">= 28",
  110. "vitest": ">= 0.32"
  111. },
  112. "peerDependenciesMeta": {
  113. "@jest/globals": {
  114. "optional": true
  115. },
  116. "@types/jest": {
  117. "optional": true
  118. },
  119. "jest": {
  120. "optional": true
  121. },
  122. "vitest": {
  123. "optional": true
  124. }
  125. },
  126. "eslintConfig": {
  127. "extends": "./node_modules/kcd-scripts/eslint.js",
  128. "parserOptions": {
  129. "sourceType": "module",
  130. "ecmaVersion": 2020
  131. },
  132. "rules": {
  133. "no-invalid-this": "off"
  134. },
  135. "overrides": [
  136. {
  137. "files": [
  138. "src/__tests__/*.js"
  139. ],
  140. "rules": {
  141. "max-lines-per-function": "off"
  142. }
  143. },
  144. {
  145. "files": [
  146. "**/*.d.ts"
  147. ],
  148. "rules": {
  149. "@typescript-eslint/no-empty-interface": "off",
  150. "@typescript-eslint/no-explicit-any": "off",
  151. "@typescript-eslint/no-invalid-void-type": "off",
  152. "@typescript-eslint/no-unused-vars": "off",
  153. "@typescript-eslint/triple-slash-reference": "off"
  154. }
  155. }
  156. ]
  157. },
  158. "eslintIgnore": [
  159. "node_modules",
  160. "coverage",
  161. "dist",
  162. "types/__tests__"
  163. ],
  164. "repository": {
  165. "type": "git",
  166. "url": "https://github.com/testing-library/jest-dom"
  167. },
  168. "bugs": {
  169. "url": "https://github.com/testing-library/jest-dom/issues"
  170. },
  171. "homepage": "https://github.com/testing-library/jest-dom#readme"
  172. }