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