@najemi-software/vitest-dom 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/esm/index.d.ts +18 -3
  3. package/esm/index.d.ts.map +1 -1
  4. package/esm/index.js +1 -0
  5. package/esm/index.js.map +1 -1
  6. package/esm/matchers/to-be-checked.d.ts +8 -1
  7. package/esm/matchers/to-be-checked.d.ts.map +1 -1
  8. package/esm/matchers/to-be-checked.js +8 -1
  9. package/esm/matchers/to-be-checked.js.map +1 -1
  10. package/esm/matchers/to-be-disabled.d.ts +10 -2
  11. package/esm/matchers/to-be-disabled.d.ts.map +1 -1
  12. package/esm/matchers/to-be-disabled.js +10 -2
  13. package/esm/matchers/to-be-disabled.js.map +1 -1
  14. package/esm/matchers/to-be-empty-dom-element.d.ts +2 -1
  15. package/esm/matchers/to-be-empty-dom-element.d.ts.map +1 -1
  16. package/esm/matchers/to-be-empty-dom-element.js +2 -1
  17. package/esm/matchers/to-be-empty-dom-element.js.map +1 -1
  18. package/esm/matchers/to-be-empty.d.ts +5 -2
  19. package/esm/matchers/to-be-empty.d.ts.map +1 -1
  20. package/esm/matchers/to-be-empty.js +5 -2
  21. package/esm/matchers/to-be-empty.js.map +1 -1
  22. package/esm/matchers/to-be-in-the-document.d.ts +2 -1
  23. package/esm/matchers/to-be-in-the-document.d.ts.map +1 -1
  24. package/esm/matchers/to-be-in-the-document.js +2 -1
  25. package/esm/matchers/to-be-in-the-document.js.map +1 -1
  26. package/esm/matchers/to-be-in-the-dom.d.ts +6 -3
  27. package/esm/matchers/to-be-in-the-dom.d.ts.map +1 -1
  28. package/esm/matchers/to-be-in-the-dom.js +6 -3
  29. package/esm/matchers/to-be-in-the-dom.js.map +1 -1
  30. package/esm/matchers/to-be-invalid.d.ts +16 -2
  31. package/esm/matchers/to-be-invalid.d.ts.map +1 -1
  32. package/esm/matchers/to-be-invalid.js +16 -2
  33. package/esm/matchers/to-be-invalid.js.map +1 -1
  34. package/esm/matchers/to-be-partially-checked.d.ts +7 -1
  35. package/esm/matchers/to-be-partially-checked.d.ts.map +1 -1
  36. package/esm/matchers/to-be-partially-checked.js +7 -1
  37. package/esm/matchers/to-be-partially-checked.js.map +1 -1
  38. package/esm/matchers/to-be-required.d.ts +8 -1
  39. package/esm/matchers/to-be-required.d.ts.map +1 -1
  40. package/esm/matchers/to-be-required.js +8 -1
  41. package/esm/matchers/to-be-required.js.map +1 -1
  42. package/esm/matchers/to-be-visible.d.ts +2 -1
  43. package/esm/matchers/to-be-visible.d.ts.map +1 -1
  44. package/esm/matchers/to-be-visible.js +2 -1
  45. package/esm/matchers/to-be-visible.js.map +1 -1
  46. package/esm/matchers/to-contain-element.d.ts +2 -1
  47. package/esm/matchers/to-contain-element.d.ts.map +1 -1
  48. package/esm/matchers/to-contain-element.js +2 -1
  49. package/esm/matchers/to-contain-element.js.map +1 -1
  50. package/esm/matchers/to-contain-html.d.ts +2 -1
  51. package/esm/matchers/to-contain-html.d.ts.map +1 -1
  52. package/esm/matchers/to-contain-html.js +2 -1
  53. package/esm/matchers/to-contain-html.js.map +1 -1
  54. package/esm/matchers/to-have-accessible-description.d.ts +2 -1
  55. package/esm/matchers/to-have-accessible-description.d.ts.map +1 -1
  56. package/esm/matchers/to-have-accessible-description.js +2 -1
  57. package/esm/matchers/to-have-accessible-description.js.map +1 -1
  58. package/esm/matchers/to-have-accessible-errormessage.d.ts +6 -1
  59. package/esm/matchers/to-have-accessible-errormessage.d.ts.map +1 -1
  60. package/esm/matchers/to-have-accessible-errormessage.js +6 -1
  61. package/esm/matchers/to-have-accessible-errormessage.js.map +1 -1
  62. package/esm/matchers/to-have-accessible-name.d.ts +2 -1
  63. package/esm/matchers/to-have-accessible-name.d.ts.map +1 -1
  64. package/esm/matchers/to-have-accessible-name.js +2 -1
  65. package/esm/matchers/to-have-accessible-name.js.map +1 -1
  66. package/esm/matchers/to-have-attribute.d.ts +8 -1
  67. package/esm/matchers/to-have-attribute.d.ts.map +1 -1
  68. package/esm/matchers/to-have-attribute.js +8 -1
  69. package/esm/matchers/to-have-attribute.js.map +1 -1
  70. package/esm/matchers/to-have-class.d.ts +12 -3
  71. package/esm/matchers/to-have-class.d.ts.map +1 -1
  72. package/esm/matchers/to-have-class.js +8 -1
  73. package/esm/matchers/to-have-class.js.map +1 -1
  74. package/esm/matchers/to-have-description.d.ts +10 -3
  75. package/esm/matchers/to-have-description.d.ts.map +1 -1
  76. package/esm/matchers/to-have-description.js +10 -3
  77. package/esm/matchers/to-have-description.js.map +1 -1
  78. package/esm/matchers/to-have-display-value.d.ts +7 -1
  79. package/esm/matchers/to-have-display-value.d.ts.map +1 -1
  80. package/esm/matchers/to-have-display-value.js +7 -1
  81. package/esm/matchers/to-have-display-value.js.map +1 -1
  82. package/esm/matchers/to-have-errormessage.d.ts +3 -3
  83. package/esm/matchers/to-have-errormessage.js +3 -3
  84. package/esm/matchers/to-have-focus.d.ts +2 -1
  85. package/esm/matchers/to-have-focus.d.ts.map +1 -1
  86. package/esm/matchers/to-have-focus.js +2 -1
  87. package/esm/matchers/to-have-focus.js.map +1 -1
  88. package/esm/matchers/to-have-form-values.d.ts +8 -1
  89. package/esm/matchers/to-have-form-values.d.ts.map +1 -1
  90. package/esm/matchers/to-have-form-values.js +8 -1
  91. package/esm/matchers/to-have-form-values.js.map +1 -1
  92. package/esm/matchers/to-have-style.d.ts +8 -1
  93. package/esm/matchers/to-have-style.d.ts.map +1 -1
  94. package/esm/matchers/to-have-style.js +8 -1
  95. package/esm/matchers/to-have-style.js.map +1 -1
  96. package/esm/matchers/to-have-text-content.d.ts +2 -1
  97. package/esm/matchers/to-have-text-content.d.ts.map +1 -1
  98. package/esm/matchers/to-have-text-content.js +2 -1
  99. package/esm/matchers/to-have-text-content.js.map +1 -1
  100. package/esm/matchers/to-have-value.d.ts +2 -1
  101. package/esm/matchers/to-have-value.d.ts.map +1 -1
  102. package/esm/matchers/to-have-value.js +2 -1
  103. package/esm/matchers/to-have-value.js.map +1 -1
  104. package/esm/matchers/types.d.ts +15 -0
  105. package/esm/matchers/types.d.ts.map +1 -1
  106. package/esm/tsdoc-metadata.json +11 -0
  107. package/esm/vitest-dom.d.ts +882 -0
  108. package/package.json +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@najemi-software/vitest-dom",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "private": false,
5
5
  "description": "Custom Vitest matchers to test the state of the DOM, forked from jest-dom.",
6
6
  "homepage": "https://github.com/Najemi-Software/vitest-dom#readme",
@@ -61,7 +61,8 @@
61
61
  "access": "public"
62
62
  },
63
63
  "scripts": {
64
- "build": "pnpm run clean && npm-run-all -p build-ts build-check",
64
+ "api-extractor": "mkdir -p api && [ -z \"${CI}\" ] && (api-extractor run -l) || (api-extractor run)",
65
+ "build": "pnpm run clean && npm-run-all -p build-ts build-check && pnpm run api-extractor",
65
66
  "build-check": "tsc",
66
67
  "build-ts": "tsc -p tsconfig.build.json",
67
68
  "clean": "rm -rf ./esm",
@@ -83,6 +84,7 @@
83
84
  "devDependencies": {
84
85
  "@gooddata/eslint-config": "11.59.0",
85
86
  "@gooddata/oxlint-config": "11.59.0",
87
+ "@microsoft/api-extractor": "^7.59.2",
86
88
  "@types/lodash-es": "^4.17.9",
87
89
  "@typescript-eslint/eslint-plugin": "8.58.0",
88
90
  "@typescript-eslint/parser": "8.58.0",