{"_id":"@testing-library/jasmine-dom","_rev":"15-7565a067b61c78d7ea38f2b6b300fdfd","name":"@testing-library/jasmine-dom","dist-tags":{"latest":"1.3.3"},"versions":{"1.0.2":{"name":"@testing-library/jasmine-dom","version":"1.0.2","keywords":["testing","dom","jasmine","matchers","jsdom"],"author":{"url":"https://github.com/brrianalexis","name":"Brian Alexis Michel","email":"brrianalexis.dev@gmail.com"},"license":"MIT","_id":"@testing-library/jasmine-dom@1.0.2","maintainers":[{"name":"brrianalexis","email":"brrianalexis.dev@gmail.com"},{"name":"thymikee","email":"thymikee@gmail.com"},{"name":"cmckinstry","email":"carson.mckinstry@gmail.com"},{"name":"pago","email":"patrick.gotthardt@trivago.com"},{"name":"mihar-22","email":"rahim_alwer@hotmail.com"},{"name":"antoaravinth","email":"anto.aravinth.cse@gmail.com"},{"name":"mpeyper","email":"mpeyper7@gmail.com"},{"name":"gpx","email":"polvara@gmail.com"},{"name":"patrickhulce","email":"patrick.hulce@gmail.com"},{"name":"timdeschryver","email":"timdeschryver.dev@gmail.com"},{"name":"wendell_adriel","email":"wendelladriel.ti@gmail.com"},{"name":"dfcook","email":"dfcook@hotmail.com"},{"name":"benmonro","email":"ben.monro@gmail.com"},{"name":"bcarroll22","email":"brandonvcarroll@gmail.com"},{"name":"kentcdodds","email":"me@kentcdodds.com"},{"name":"testing-library-bot","email":"me+testing-library@kentcdodds.com"}],"homepage":"https://github.com/testing-library/jasmine-dom#readme","bugs":{"url":"https://github.com/testing-library/jasmine-dom/issues"},"dist":{"shasum":"8b71cf531bd1bafffa746fb07d358e51bdeedb23","tarball":"https://registry.npmjs.org/@testing-library/jasmine-dom/-/jasmine-dom-1.0.2.tgz","fileCount":24,"integrity":"sha512-zGqVZWWAErwF7yLtAuiprI9SSv5BYha2sck+HSKYD9rdfZO3A0lksayt0m36zqkuFpKoaHyQNjqHXhkvD5QHsA==","signatures":[{"sig":"MEYCIQD9LKbi/HyzRSONrBBelJRmOuKpCj+AHUiAq5cXXj3AIAIhALaeeFSVsL0iqHlr+nRHnbACQ4Vr1lSJeCB67B26LRcb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99102,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQhH2CRA9TVsSAnZWagAASJsQAJKtwdlQ1yndy9bCeMmd\nZInr2i+nI0iCUq6hzLR4SLal8Z6RjXaIoXM5D/ei265pzoE6cXDIGXUbc42I\n1tDDRrmsFZ/EUO36SFrBkpVcOUuMUo+JJvqJFNFhR/fHaczluRLq7qzy9xir\nl3+FjaTVKzp3zYP4U8/zRYJEGiGmCALP3h5KrWkbdhHcqkmnswYfZxmvPqDl\nH8IubxUPxYYthQuwCi2RbrYgmyA+S+CYLiOiVPsoSXxnbOcVNg3kdguEHftl\nhYCWG1ZyBSKkDuSkMd/K1hPL4KU6IQV9f3UjM56qcqeMFAn7e/4i6dTiyxVO\nTFTm3MXbSpr81IdO9sfdgsRI1rFf8tWyhjnL2Tmj09f1MW3F9QWMwiOHsMkz\nWVHbs5Tc9s12YBojmn263+k718QHtctnyrrxk/holUuEd06VOaBGtWJNio3V\n9Yfp1Zg3ddcOpr3UlxYS/IHg1iWQRgBNxWVhm01Hh6IRkOTtCkvzkk5qVF/W\nIDb6Objb4LKbjKsQtriSn0mMjhtNRbCBPUwcZR7uS1QI4ZSHePwjNFRsiN59\naMbJqxdSw5cqFVyQUrojr329bqm92SM3xFUVxkxZ+ZUxoffNPuL9BNJ+3r33\nxDaOim5lkamB7MF+8RVz8Tf3ge9oeBrT2Y7QCpycWZ69a9FdTpaObwnkCatc\n/K67\r\n=PiQL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"d5471826ad35606b2c2a2ea536086191a606d48b","scripts":{"lint":"kcd-scripts lint","test":"nyc --reporter=text --reporter=lcov jasmine --config=jasmine.json","build":"kcd-scripts build","setup":"npm install && npm run validate","lint:fix":"kcd-scripts lint --fix","validate":"npm run lint && npm run test && npm run build","lint:watch":"onchange \"src/**/*.js\" \"tests/**/*.js\" -- npm run lint:fix","test:watch":"onchange \"src/**/*.js\" \"src/__tests__/**/*.js\" -- npm run test"},"_npmUser":{"name":"testing-library-bot","email":"me+testing-library@kentcdodds.com"},"repository":{"url":"git+https://github.com/testing-library/jasmine-dom.git","type":"git"},"_npmVersion":"6.14.7","description":"Custom Jasmine matchers for testing DOM elements","directories":{},"_nodeVersion":"14.8.0","dependencies":{"css":"^3.0.0","chalk":"^4.1.0","lodash":"^4.17.19","aria-query":"^4.2.2","css.escape":"^1.5.1","@babel/runtime":"^7.10.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","jsdom":"^16.3.0","eslint":"^7.4.0","jasmine":"^3.5.0","onchange":"^7.0.2","prettier":"^2.0.5","@babel/cli":"^7.10.4","@babel/core":"^7.10.4","kcd-scripts":"^6.2.4","@types/jasmine":"^3.5.11","@babel/register":"^7.10.4","@babel/preset-env":"^7.10.4","jasmine-reporters":"^2.3.2","babel-plugin-istanbul":"^6.0.0","jasmine-spec-reporter":"^5.0.2","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4"},"_npmOperationalInternal":{"tmp":"tmp/jasmine-dom_1.0.2_1598165493612_0.4062426627196454","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@testing-library/jasmine-dom","version":"1.0.3","keywords":["testing","dom","jasmine","matchers","jsdom"],"author":{"url":"https://github.com/brrianalexis","name":"Brian Alexis Michel","email":"brrianalexis.dev@gmail.com"},"license":"MIT","_id":"@testing-library/jasmine-dom@1.0.3","maintainers":[{"name":"antoaravinth","email":"anto.aravinth.cse@gmail.com"},{"name":"bcarroll22","email":"brandonvcarroll@gmail.com"},{"name":"benmonro","email":"ben.monro@gmail.com"},{"name":"brrianalexis","email":"brrianalexis.dev@gmail.com"},{"name":"cmckinstry","email":"carson.mckinstry@gmail.com"},{"name":"dfcook","email":"dfcook@hotmail.com"},{"name":"gpx","email":"polvara@gmail.com"},{"name":"kentcdodds","email":"me@kentcdodds.com"},{"name":"mihar-22","email":"rahim_alwer@hotmail.com"},{"name":"mpeyper","email":"mpeyper7@gmail.com"},{"name":"pago","email":"patrick.gotthardt@trivago.com"},{"name":"patrickhulce","email":"patrick.hulce@gmail.com"},{"name":"testing-library-bot","email":"me+testing-library@kentcdodds.com"},{"name":"thymikee","email":"thymikee@gmail.com"},{"name":"timdeschryver","email":"timdeschryver.dev@gmail.com"},{"name":"wendell_adriel","email":"wendelladriel.ti@gmail.com"}],"homepage":"https://github.com/testing-library/jasmine-dom#readme","bugs":{"url":"https://github.com/testing-library/jasmine-dom/issues"},"dist":{"shasum":"2c503a560ebaa63a6a72ed8b881681620b39707f","tarball":"https://registry.npmjs.org/@testing-library/jasmine-dom/-/jasmine-dom-1.0.3.tgz","fileCount":24,"integrity":"sha512-gOH103zzqdKRAmajBnSRjn7SiPlrWu45vAGbNCiwJOqSXSXjOR9i9377RiJX9AkppJpSTLRlFzvbUuxRuwUZeg==","signatures":[{"sig":"MEUCIQCyP7HdYR5bJJ1Y45KkWCJQdPl5F9Obe7SpkLTv6jk6BgIgZ2wL6QE+lfMFHYNYmiwmZZSxGZ/W6eyoW9KJ2bZxxs8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":125066,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQuZdCRA9TVsSAnZWagAAuz8P/0JKXZUbpZ6QFaxIr+9X\nXjq5tkK6M41JnlgW4moSHj72xuG5AxMndGaUCq0s2mZPE0+p5LA4KO25QK8S\n5f7+wb+ggLkWcDm36qTKZqF7NoQYTolu+rlgQbFkU4BAP6/pm00je1/a40n7\nIs4hmgsQCRX1fDgzmli/MIjku246Nmcc38xJ8kyLMtc1pTt6XnE0HbRCyl5K\nmbua86lHUZuo66JrtYhEK9sOI5ymmz9fBPyJtJxYqcuNscythus4NRRPocEC\n5j6ufpslhAr3j/OECHdl7pujgmFgRMZ+zrox5NVmhOIX37lv02e32qfv3hK9\n+3N+/yEwvpj7DfO1C68Sog4zSHWpUbPuyUXHzrJ4BK1+aMacosbhI1Nud1/j\nN0OimIpbu1cC1FNF1Wgwl4sdHpYPW/6kss3qL5SkwuogIyXT9TD67jYt5AZ5\nWcbKL+gXY3IZhi9MzsJnObukmgMMJSODaLg8XhVk5lbzrpEwgjJ0+zFXt/ZK\nSP9JujSUKa4XjIe3YltZbzeluiVsZbQ4a6AHAej5lfpOKjPIBrc/TOW7PS5m\nTnbKymeQ3W2qt3By8oU1M/ByOG+mFJMXdlwMLj7jp/HfZED9zG/dX6aPB4+l\nuvmzIcsrpwYyUCgyjmGmMUoHd4Ue1gb2VzfaX7QZUTQ1XLeDCj822gbj3EPW\n42v+\r\n=dypy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"2d587f754758cdf8d5120c426aa2eb9c7e89c91f","scripts":{"lint":"kcd-scripts lint","test":"nyc --reporter=text --reporter=lcov jasmine --config=jasmine.json","build":"kcd-scripts build","setup":"npm install && npm run validate","lint:fix":"kcd-scripts lint --fix","validate":"npm run lint && npm run test && npm run build","lint:watch":"onchange \"src/**/*.js\" \"tests/**/*.js\" -- npm run lint:fix","test:watch":"onchange \"src/**/*.js\" \"src/__tests__/**/*.js\" -- npm run test"},"_npmUser":{"name":"testing-library-bot","email":"me+testing-library@kentcdodds.com"},"repository":{"url":"git+https://github.com/testing-library/jasmine-dom.git","type":"git"},"_npmVersion":"6.14.7","description":"Custom Jasmine matchers for testing DOM elements","directories":{},"_nodeVersion":"14.8.0","dependencies":{"css":"^3.0.0","chalk":"^4.1.0","lodash":"^4.17.19","aria-query":"^4.2.2","css.escape":"^1.5.1","@babel/runtime":"^7.10.4"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","jsdom":"^16.3.0","eslint":"^7.4.0","jasmine":"^3.5.0","onchange":"^7.0.2","prettier":"^2.0.5","@babel/cli":"^7.10.4","@babel/core":"^7.10.4","kcd-scripts":"^6.2.4","@types/jasmine":"^3.5.11","@babel/register":"^7.10.4","@babel/preset-env":"^7.10.4","jasmine-reporters":"^2.3.2","babel-plugin-istanbul":"^6.0.0","jasmine-spec-reporter":"^5.0.2","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4"},"_npmOperationalInternal":{"tmp":"tmp/jasmine-dom_1.0.3_1598219869391_0.11232970071283188","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@testing-library/jasmine-dom","version":"1.1.0","keywords":["testing","dom","jasmine","matchers","jsdom"],"author":{"url":"https://github.com/brrianalexis","name":"Brian Alexis Michel","email":"brrianalexis.dev@gmail.com"},"license":"MIT","_id":"@testing-library/jasmine-dom@1.1.0","maintainers":[{"name":"antoaravinth","email":"anto.aravinth.cse@gmail.com"},{"name":"bcarroll22","email":"brandonvcarroll@gmail.com"},{"name":"benmonro","email":"ben.monro@gmail.com"},{"name":"brrianalexis","email":"brrianalexis.dev@gmail.com"},{"name":"cmckinstry","email":"carson.mckinstry@gmail.com"},{"name":"dfcook","email":"dfcook@hotmail.com"},{"name":"gpx","email":"polvara@gmail.com"},{"name":"kentcdodds","email":"me@kentcdodds.com"},{"name":"mihar-22","email":"rahim_alwer@hotmail.com"},{"name":"mpeyper","email":"mpeyper7@gmail.com"},{"name":"pago","email":"patrick.gotthardt@trivago.com"},{"name":"patrickhulce","email":"patrick.hulce@gmail.com"},{"name":"testing-library-bot","email":"me+testing-library@kentcdodds.com"},{"name":"thymikee","email":"thymikee@gmail.com"},{"name":"timdeschryver","email":"timdeschryver.dev@gmail.com"},{"name":"wendell_adriel","email":"wendelladriel.ti@gmail.com"}],"homepage":"https://github.com/testing-library/jasmine-dom#readme","bugs":{"url":"https://github.com/testing-library/jasmine-dom/issues"},"dist":{"shasum":"bcc5300f7e4cbb3f2be69d88a8d731f7144fb3ed","tarball":"https://registry.npmjs.org/@testing-library/jasmine-dom/-/jasmine-dom-1.1.0.tgz","fileCount":24,"integrity":"sha512-85fSVFOPA9hK8KihkqDDwoCeNu2/rARz0rj/0tP9mwAPFjLp8giKsOKQXNP8Z9auHSmp9lxRAORQbGGpO8le4Q==","signatures":[{"sig":"MEYCIQCUrwRqlmA7RgaxQkoiAsTFIG3IngPVPgiEv0tOKna08wIhAL96RTmI3SsLsp+jsPRrT973bQVBlrqIePJ8vv8GnMHd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":124993,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSQ/cCRA9TVsSAnZWagAASFcQAIDAKUu3fDiHJ0FRGEm9\nZSQymOFBY0XZfuwiTTYWcf/xj331vlh+mUnCN+9gYDTRY84lM0vKAv0l9pUw\nmaiDtFJMRgWE+1b+DSlhphIV3Z661ohFkRtP4AVICxMS+i5HH4AC6siVB4jF\nDA3OqCDDBaagfyP9l51DGdIe9URwWVBMqJMzMGFWQ3A4afyLk4k4p4uznTST\nN5jtAZArE0jms5Ssw5+gJrhmhSOzBNTh/fohbam9YXQAlrjapIqXG20f6n+A\nKwwjuV900we7HYOT8lqsbjRctkG5sZyKCvsMzfV5ebeigxXTQcFYGvBw6iar\n7wnnuLpcm+yEqjLWEJmp5079HuWoMRlHb7mI9t3fIiO1AxvCb1jk2lNMPjV5\nhWRdUam2izoLQGKJ0A1HzvlAKK2UIwKgHm/KmTWg27N1FD2EjuEPPo7mJh3V\nXwai83U9U8naZCg3VxDwjUPEp6d28ta0mklTXFuxEP1CNem6nkCrs2213pN2\nYGmt8wuLnm00Jzump9f+sR37ObOrq6+cF+aHgWkWpWpptNLgMK660tNrvQoy\npVLX7A4LyVPKJT10WxztwYy8nl/mxbWRJbXVbnof/NwnK2k++bbRQAGHhqac\n5kvTFDF0jzVyS3d3NSPrrYBOnNnR6eJ8hnbh3stwFl4r8toFwaX19cmK/fIN\nRcNf\r\n=0FvI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"1a0b1bd9626410d5c5f12baa78e9496f8914d3ce","scripts":{"lint":"kcd-scripts lint","test":"nyc --reporter=text --reporter=lcov jasmine --config=jasmine.json","build":"kcd-scripts build","setup":"npm install && npm run validate","lint:fix":"kcd-scripts lint --fix","validate":"npm run lint && npm run test && npm run build","lint:watch":"onchange \"src/**/*.js\" \"tests/**/*.js\" -- npm run lint:fix","test:watch":"onchange \"src/**/*.js\" \"src/__tests__/**/*.js\" -- npm run test"},"_npmUser":{"name":"testing-library-bot","email":"me+testing-library@kentcdodds.com"},"repository":{"url":"git+https://github.com/testing-library/jasmine-dom.git","type":"git"},"_npmVersion":"6.14.8","description":"Custom Jasmine matchers for testing DOM elements","directories":{},"_nodeVersion":"14.9.0","dependencies":{"css":"^3.0.0","chalk":"^4.1.0","lodash":"^4.17.19","aria-query":"^4.2.2","css.escape":"^1.5.1","@babel/runtime":"^7.10.4","@types/testing-library__jasmine-dom":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","jsdom":"^16.3.0","eslint":"^7.4.0","jasmine":"^3.5.0","onchange":"^7.0.2","prettier":"^2.0.5","@babel/cli":"^7.10.4","@babel/core":"^7.10.4","kcd-scripts":"^6.2.4","@types/jasmine":"^3.5.11","@babel/register":"^7.10.4","@babel/preset-env":"^7.10.4","jasmine-reporters":"^2.3.2","babel-plugin-istanbul":"^6.0.0","jasmine-spec-reporter":"^5.0.2","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4"},"_npmOperationalInternal":{"tmp":"tmp/jasmine-dom_1.1.0_1598623708392_0.5178145804054148","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@testing-library/jasmine-dom","version":"1.1.1","keywords":["testing","dom","jasmine","matchers","jsdom"],"author":{"url":"https://github.com/brrianalexis","name":"Brian Alexis Michel","email":"brrianalexis.dev@gmail.com"},"license":"MIT","_id":"@testing-library/jasmine-dom@1.1.1","maintainers":[{"name":"brrianalexis","email":"brrianalexis.dev@gmail.com"},{"name":"thymikee","email":"thymikee@gmail.com"},{"name":"cmckinstry","email":"carson.mckinstry@gmail.com"},{"name":"pago","email":"patrick.gotthardt@trivago.com"},{"name":"mihar-22","email":"rahim_alwer@hotmail.com"},{"name":"antoaravinth","email":"anto.aravinth.cse@gmail.com"},{"name":"mpeyper","email":"mpeyper7@gmail.com"},{"name":"gpx","email":"polvara@gmail.com"},{"name":"patrickhulce","email":"patrick.hulce@gmail.com"},{"name":"timdeschryver","email":"timdeschryver.dev@gmail.com"},{"name":"wendell_adriel","email":"wendelladriel.ti@gmail.com"},{"name":"dfcook","email":"dfcook@hotmail.com"},{"name":"benmonro","email":"ben.monro@gmail.com"},{"name":"bcarroll22","email":"brandonvcarroll@gmail.com"},{"name":"kentcdodds","email":"me@kentcdodds.com"},{"name":"testing-library-bot","email":"testinglibraryoss@gmail.com"}],"homepage":"https://github.com/testing-library/jasmine-dom#readme","bugs":{"url":"https://github.com/testing-library/jasmine-dom/issues"},"dist":{"shasum":"64fbdb490259f8e480e1b9390c450f1f01c1766c","tarball":"https://registry.npmjs.org/@testing-library/jasmine-dom/-/jasmine-dom-1.1.1.tgz","fileCount":24,"integrity":"sha512-FlA37eOHfpr5WJUwD8FraJCqtKoLjE352EPbiOj5y6LE2qgbbLUbjh15XyU08NbHqcGsukPkHprRkRLailFvuw==","signatures":[{"sig":"MEUCIQDWf513Gstsn8q/0xF9ACMTyP4ZKJKMU7WfMuNNSwC1fgIgaI86uiyVmkPxRPBOCvywKrpaz1dyfD9ewjyRQwyPv6k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":126238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsfziCRA9TVsSAnZWagAAitYP/itOGN1nVmeInjga9WYa\nuDDeLQuoW4P5saKwLQc4KurFcbwU1w9/vKlWwNvHJhalsSlbEsLFO27y2U3P\nYusvC58xbSj7DzQRwAI8nkQjxMh8LKNYicjK9kMYwMUqntrVIUlwMMH3zdJU\nmet075gEIvKiPR8fh4xwK6enZVoZhsh/ASJ1p4FL5thBQeLdzw4Fur/embQL\n9JSbZbjwSljMIbbc+dtdF2MkvAysSDb/VvbhgjR1CHEBIDKs50o+PTxaXQw0\nk4QfRYjl1gexvXA5PSNaMrJhxNWIOYGcr+4v3UaPjLzNoxQioTaheCF0j8X1\nyECMSEorlA8ur86NRYnLyN+8s437L5MCI3kUaSlPGvbDwOvonKQDPNTgJSld\nxfHAjhwnLB7Z1fUZix7QSCNtHZh/SDYfQHaCAZaibTRlV0ZwRT+bmSGo6yRB\nag/bUEFC6y3dMJL/KaYS+uJZKxgmOzdIp8QhgJWrARPCoqpownCEx78Pjh8T\n8jSMABooiVSvHqzlAq/DqI+Eqnfx1rVQLwmdI80UQ2dKVfCU2MOwIdrjkiRA\n4rc3tos7/yyUbwW5FPJyTwP7X3sR53up3hZPKZZISuxTiXdhy/hE8jLV84u+\n/sn2GMc0Tpz/GXPVkfKF2DkckEVL4qGascmAcJOGaJHjvHiUX3epRYI4DiXP\nfICW\r\n=kEV9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"1483058ca90bd04ed6c9066ccdad3d876eee81ec","scripts":{"lint":"kcd-scripts lint","test":"nyc --reporter=text --reporter=lcov jasmine --config=jasmine.json","build":"kcd-scripts build","setup":"npm install && npm run validate","lint:fix":"kcd-scripts lint --fix","validate":"npm run lint && npm run test && npm run build","lint:watch":"onchange \"src/**/*.js\" \"tests/**/*.js\" -- npm run lint:fix","test:watch":"onchange \"src/**/*.js\" \"src/__tests__/**/*.js\" -- npm run test"},"_npmUser":{"name":"testing-library-bot","email":"testinglibraryoss@gmail.com"},"repository":{"url":"git+https://github.com/testing-library/jasmine-dom.git","type":"git"},"_npmVersion":"6.14.8","description":"Custom Jasmine matchers for testing DOM elements","directories":{},"_nodeVersion":"14.15.0","dependencies":{"css":"^3.0.0","chalk":"^4.1.0","lodash":"^4.17.20","aria-query":"^4.2.2","css.escape":"^1.5.1","@babel/runtime":"^7.12.5","@types/testing-library__jasmine-dom":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","jsdom":"^16.4.0","eslint":"^7.13.0","jasmine":"^3.6.3","onchange":"^7.1.0","prettier":"^2.1.2","@babel/cli":"^7.12.1","@babel/core":"^7.12.3","kcd-scripts":"^7.0.3","@types/jasmine":"^3.6.1","@babel/register":"^7.12.1","@babel/preset-env":"^7.12.1","jasmine-reporters":"^2.3.2","babel-plugin-istanbul":"^6.0.0","jasmine-spec-reporter":"^6.0.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4"},"_npmOperationalInternal":{"tmp":"tmp/jasmine-dom_1.1.1_1605500129980_0.19147433475640052","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@testing-library/jasmine-dom","version":"1.2.0","keywords":["testing","dom","jasmine","matchers","jsdom"],"author":{"url":"https://github.com/brrianalexis","name":"Brian Alexis Michel","email":"brrianalexis.dev@gmail.com"},"license":"MIT","_id":"@testing-library/jasmine-dom@1.2.0","maintainers":[{"name":"testing-library-bot","email":"testinglibraryoss@gmail.com"},{"name":"kentcdodds","email":"me@kentcdodds.com"},{"name":"bcarroll22","email":"brandonvcarroll@gmail.com"},{"name":"benmonro","email":"ben.monro@gmail.com"},{"name":"wendell_adriel","email":"wendelladriel.ti@gmail.com"},{"name":"timdeschryver","email":"timdeschryver.dev@gmail.com"},{"name":"patrickhulce","email":"patrick.hulce@gmail.com"},{"name":"dfcook","email":"dfcook@hotmail.com"},{"name":"gpx","email":"polvara@gmail.com"},{"name":"mpeyper","email":"mpeyper7@gmail.com"},{"name":"antoaravinth","email":"anto.aravinth.cse@gmail.com"},{"name":"mihar-22","email":"rahim_alwer@hotmail.com"},{"name":"pago","email":"patrick.gotthardt@trivago.com"},{"name":"cmckinstry","email":"carson.mckinstry@gmail.com"},{"name":"thymikee","email":"thymikee@gmail.com"},{"name":"brrianalexis","email":"brrianalexis.dev@gmail.com"}],"homepage":"https://github.com/testing-library/jasmine-dom#readme","bugs":{"url":"https://github.com/testing-library/jasmine-dom/issues"},"dist":{"shasum":"b7aaefe5af408a10e658fecae618b57b05a5b8b9","tarball":"https://registry.npmjs.org/@testing-library/jasmine-dom/-/jasmine-dom-1.2.0.tgz","fileCount":24,"integrity":"sha512-GgXkbHt6O20yWAituKUxqHc2JydHILpGNSBO6ZBSyNxawA2v5FqHvgq8myXR3cClqMl54OUYDYWCMVCgVZRbGg==","signatures":[{"sig":"MEUCIQDFhm/FjQzSRQ4q8cze8Y0JYEdo7JMiVSOw6cGeUMUT9wIgT0NqVZHttjE3XexonKpegq8uxz7oe9el1OiYBRE+7lw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":126383,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1m2hCRA9TVsSAnZWagAAB+cP/0dID/4Sree0u6+39yaR\nT+/7PX9nCZvqY826DX9ZXL5mgzo/3Pq0+dgtuq+LrmPAWUWS3Gr3tyJ5IP/0\n9nRnHC9Ukrs7n7W8HLRD3kHi/PJnjOAlEimdxrDY6QN6Q0C79LWA/fYbSzQM\n1ykg2kinYLZBBGdhZFlmnRzT7dp09mxsTfc90902t82+eN+wQb3ZBjXnKyrE\nyPUuk76tle/7AJZoCTHOlJrA46YBEP2Ou+jb4ZdGnSzKvcrZeBX/yP1g+9/O\nEtYYZviad4VSgEq+KGLBaWaVR2U2OuNr00Jl9r3cFsnY8BEqQhHa3J9NIFLy\nBXJF+qYF+LAcVkTdshbIeOQP4vDjf5o1Qo4XViZyYascI2Rsd5WxYlLx8bCw\nXmTS1yMthiW8vlqzJzn2ooxYcAujPLD9AfE/F/F5Iv4nw8ifAN1KL0EcvRc9\npu3G2TLJGr7eAq23QQUYLmq58+lQBWLjn78PN8qEE2JvKuKavsrwi/6rrDtj\nMc+u0lnjeNFJacikz1yDdrEEF6f9FhQRVW1QF0KqyyH0Bf71NTnfNOZOCQ/2\nC1D40l9oMtQ5V0F+PwClbAxwookBU+aX1GPVWbosqUESNT0Wg5598cSfeGY2\nd/1bOvecYXeK6o2lBQ8vE8fzjgGIGe+fJKWLCpsBnrcgugVe14nEnZ1h+NA9\nUUpO\r\n=+YpY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"5db8663ab3cab6780eb16072fae229230b96871c","scripts":{"lint":"kcd-scripts lint","test":"nyc --reporter=text --reporter=lcov jasmine --config=jasmine.json","build":"kcd-scripts build","setup":"npm install && npm run validate","lint:fix":"kcd-scripts lint --fix","validate":"npm run lint && npm run test && npm run build","lint:watch":"onchange \"src/**/*.js\" \"tests/**/*.js\" -- npm run lint:fix","test:watch":"onchange \"src/**/*.js\" \"src/__tests__/**/*.js\" -- npm run test"},"_npmUser":{"name":"testing-library-bot","email":"testinglibraryoss@gmail.com"},"repository":{"url":"git+https://github.com/testing-library/jasmine-dom.git","type":"git"},"_npmVersion":"6.14.8","description":"Custom Jasmine matchers for testing DOM elements","directories":{},"_nodeVersion":"14.15.1","dependencies":{"css":"^3.0.0","chalk":"^4.1.0","lodash":"^4.17.20","aria-query":"^4.2.2","css.escape":"^1.5.1","@babel/runtime":"^7.12.5","@types/testing-library__jasmine-dom":"^1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","jsdom":"^16.4.0","eslint":"^7.15.0","jasmine":"^3.6.3","onchange":"^7.1.0","prettier":"^2.2.1","@babel/cli":"^7.12.10","@babel/core":"^7.12.10","kcd-scripts":"^7.5.3","@types/jasmine":"^3.6.2","@babel/register":"^7.12.10","@babel/preset-env":"^7.12.10","jasmine-reporters":"^2.3.2","babel-plugin-istanbul":"^6.0.0","jasmine-spec-reporter":"^6.0.0","eslint-config-prettier":"^7.0.0","eslint-plugin-prettier":"^3.2.0"},"_npmOperationalInternal":{"tmp":"tmp/jasmine-dom_1.2.0_1607888289182_0.06984900977937336","host":"s3://npm-registry-packages"}},"1.3.2":{"name":"@testing-library/jasmine-dom","version":"1.3.2","keywords":["testing","dom","jasmine","matchers","jsdom"],"author":{"url":"https://github.com/brrianalexis","name":"Brian Alexis Michel","email":"brrianalexis.dev@gmail.com"},"license":"MIT","_id":"@testing-library/jasmine-dom@1.3.2","maintainers":[{"name":"eps1lon","email":"silbermann.sebastian@gmail.com"},{"name":"mdjastrzebski","email":"mdjastrzebski@gmail.com"},{"name":"jdecroock","email":"decroockjovi@gmail.com"},{"name":"testing-library-bot","email":"testinglibraryoss@gmail.com"},{"name":"kentcdodds","email":"me@kentcdodds.com"},{"name":"timdeschryver","email":"timdeschryver@outlook.com"},{"name":"patrickhulce","email":"patrick.hulce@gmail.com"},{"name":"dfcook","email":"dfcook@hotmail.com"},{"name":"gpx","email":"polvara@gmail.com"},{"name":"mpeyper","email":"mpeyper7@gmail.com"},{"name":"mihar-22","email":"rahim.alwer@gmail.com"},{"name":"pago","email":"patrick.gotthardt@trivago.com"},{"name":"cmckinstry","email":"carson.mckinstry@gmail.com"},{"name":"thymikee","email":"thymikee@gmail.com"},{"name":"brrianalexis","email":"brrianalexis.dev@gmail.com"}],"homepage":"https://github.com/testing-library/jasmine-dom#readme","bugs":{"url":"https://github.com/testing-library/jasmine-dom/issues"},"dist":{"shasum":"086c2ab0187f79b5fa55033afdc8558822c6ac95","tarball":"https://registry.npmjs.org/@testing-library/jasmine-dom/-/jasmine-dom-1.3.2.tgz","fileCount":28,"integrity":"sha512-RCZLpbTGhzfb+S7ZyG7vD9dPMQZKKTyH5j17EawpbbHtshjG7Osyn5mg7PbviWOir/CIfBTseUvJtS5FuUdViw==","signatures":[{"sig":"MEYCIQDajZJc5pfMz+uu5pNwLY3GVLyxYVz/koSWnG6UmmWnSwIhAJphBHhtUsPr+PJUTujORWUeHAwE72VtUc4AaNc2Xeqs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":147064,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmWVRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoo0A/8Cr/7UQ5TxEhKuYUEEHBGo73baAQozT7nbq0Ci2VXJSW4vN3H\r\njxza5jZ8K6AFS7qIAvegyN/t5Tw2Gt7U74Dg0AoXzDRb8QzhMLJ4T56gtpRc\r\nOqplMH2Wd5EuSQ5aKH+mxf7jWQco+m7fwiaEZXa7mqf/nnMxcUlkz+sQDryp\r\netGHNJGMfgMOcATdSHzEi36Zvx+VK8/mEZcNx2FbZJdwbGWoPMGkixGhDyvA\r\nVsvrlGwXIBlNeTZQEa9JXhFvSu8SD8zv//U0NT6ZPSOSwL2sPWKC7c8mzeGL\r\nWRvbeJl58+8j/Iu7Q2IpcLdhiNDmCGEipgL5Hu4riFUaydy20fyHYbcg1lm2\r\nFj1q4SgWXzXu74QNpXldB59jR8CImfAvsS7UVEdYlVJc1i2+84bK6lCiV4/5\r\nxebJRjzBqW66aVdlw7NICXx7NMxQAiftIRPi6+4wK57ghf9gjCF8XpGSt97Z\r\nSAK70m4ITffHWFwWGZtP//O2toy/TA9x+F/H4b5lWOqB3fH5nMWWvajztYOk\r\niISl8yB3jtxqeOhKZRZulOgmSIvcJ3p/laxyDO1hOroT3OpX2Korb9ynfy2j\r\nQneNxfQEuJ0WHGecSh1/0QWdnyyMBaDUmPdLNjHhO+oBRHw415rW4gSEMKWb\r\njOlFZh/H2H9h9vuW0LxULo9TEnu5bc33HBI=\r\n=IgUK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","volta":{"node":"16.18.1"},"gitHead":"99c6d4247b556a746068699496eb50a5a17aef2e","scripts":{"lint":"kcd-scripts lint","test":"nyc --reporter=text --reporter=lcov jasmine --config=jasmine.json","build":"kcd-scripts build","setup":"npm install && npm run validate","lint:fix":"kcd-scripts lint --fix","validate":"npm run lint && npm run test && npm run build","lint:watch":"onchange \"src/**/*.js\" \"tests/**/*.js\" -- npm run lint:fix","test:watch":"onchange \"src/**/*.js\" \"src/__tests__/**/*.js\" -- npm run test"},"_npmUser":{"name":"testing-library-bot","email":"testinglibraryoss@gmail.com"},"repository":{"url":"git+https://github.com/testing-library/jasmine-dom.git","type":"git"},"_npmVersion":"8.19.2","description":"Custom Jasmine matchers for testing DOM elements","directories":{},"_nodeVersion":"16.18.1","dependencies":{"css":"^3.0.0","chalk":"^4.1.0","lodash":"^4.17.20","aria-query":"^5.0.0","css.escape":"^1.5.1","@babel/runtime":"^7.12.5","@types/testing-library__jasmine-dom":"^1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","jsdom":"^16.2.1","eslint":"^8.0.1","jasmine":"^4.5.0","onchange":"^7.1.0","prettier":"^2.2.1","@babel/cli":"^7.12.10","@babel/core":"^7.12.10","kcd-scripts":"^12.0.0","@types/jasmine":"^4.3.0","@babel/register":"^7.12.10","@babel/preset-env":"^7.12.10","jasmine-reporters":"^2.3.2","babel-plugin-istanbul":"^6.0.0","jasmine-spec-reporter":"^7.0.0","eslint-config-prettier":"^8.0.0","eslint-plugin-prettier":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/jasmine-dom_1.3.2_1670997329269_0.2576561250711351","host":"s3://npm-registry-packages"}},"1.3.3":{"name":"@testing-library/jasmine-dom","version":"1.3.3","keywords":["testing","dom","jasmine","matchers","jsdom"],"author":{"url":"https://github.com/brrianalexis","name":"Brian Alexis Michel","email":"brrianalexis.dev@gmail.com"},"license":"MIT","_id":"@testing-library/jasmine-dom@1.3.3","maintainers":[{"name":"eps1lon","email":"silbermann.sebastian@gmail.com"},{"name":"mdjastrzebski","email":"mdjastrzebski@gmail.com"},{"name":"jdecroock","email":"decroockjovi@gmail.com"},{"name":"testing-library-bot","email":"testinglibraryoss@gmail.com"},{"name":"kentcdodds","email":"me@kentcdodds.com"},{"name":"timdeschryver","email":"timdeschryver@outlook.com"},{"name":"patrickhulce","email":"patrick.hulce@gmail.com"},{"name":"dfcook","email":"dfcook@hotmail.com"},{"name":"gpx","email":"polvara@gmail.com"},{"name":"mpeyper","email":"mpeyper7@gmail.com"},{"name":"mihar-22","email":"rahim.alwer@gmail.com"},{"name":"pago","email":"patrick.gotthardt@trivago.com"},{"name":"cmckinstry","email":"carson.mckinstry@gmail.com"},{"name":"thymikee","email":"thymikee@gmail.com"},{"name":"brrianalexis","email":"brrianalexis.dev@gmail.com"}],"homepage":"https://github.com/testing-library/jasmine-dom#readme","bugs":{"url":"https://github.com/testing-library/jasmine-dom/issues"},"dist":{"shasum":"9ce6d626044d0fc0285bdf81ca41159c09b1ac8e","tarball":"https://registry.npmjs.org/@testing-library/jasmine-dom/-/jasmine-dom-1.3.3.tgz","fileCount":28,"integrity":"sha512-CS3/UNhllbDKGixrrFpZPJoPNyVdv44/pYwIu2ZsQmAInjL2O0b9MvtXFzUsropE3VcrsRsBfR4ftaRS1VQr6g==","signatures":[{"sig":"MEYCIQCwFRmOtL72Zrrn9f+uWoav3Xu1Inxx+TLxrxUsmqbD3wIhAP4zadpFgnDaNUHLLX9++nnc4/wjSeGY6z8aROtkZcsU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":147043,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjzqksACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmok5w/+JXRkzfCpPgxdiOFXwmG28fVcb+vBrNDPlrvlNc5qQHeQDD0O\r\nP9fDWE0/Jxz4pZHOJKs2LwmMkZ+eghw1JzU082sURpFAww3nRg77BHcTNHWK\r\neLs8IOszig+suOZCB5Rl1rUEz0FfaPbgQhYHrx1azeSYWgipekpRdIYeZY0f\r\n+325qx2yEJU4AKFoX86JDXLk4ntrKG26vzuUwYWmppOvRzsIY172Kawa/FC0\r\nJLnM1WP/wclppirCFWXczuEwZhVfmAe3PV/3LGSaGYvEquZmdLvJGTyuBcKt\r\nWUJYpiKAEMflIo7NXmWCKmMx7zsoHRc8e6k27uJnsNAQX6lmjue+o+g0fk89\r\ntFyTRIUAe+0mPQpTPQUSCv8ahd4ifbX+PFk9QtqmLE63qBAXezE6DU1RuHJu\r\nCGUtKgkQVRC+X1e4oLER9ONknXk7ZO0O8u1dKI4VkcUeFUVXnW46kuV9bVv/\r\nKZ4fdTGSI/J6Bwp+8YS0utzmNSdhzTCeNls+E8vKSF8rQcw7VgLwLG/5tKPD\r\nswTHxu5nF5gdOekCSm6rO8nEaM/tFOZgWZEwlYfDCYEGYmnAWR+dTQD3wOkn\r\n0rujOF5p2fjsiDE9W+A+7N1sKHdTA965wn5Khf/vZE66ECR+a3mC3ETSa9Ss\r\ncKvowATe+BDqzmvQuHw81uPIFd8m82noGtc=\r\n=UyyS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","volta":{"node":"16.18.1"},"gitHead":"8ff7df1940cb0a54466e9ce55995ceb4cdd91e1b","scripts":{"lint":"kcd-scripts lint","test":"nyc --reporter=text --reporter=lcov jasmine --config=jasmine.json","build":"kcd-scripts build","setup":"npm install && npm run validate","lint:fix":"kcd-scripts lint --fix","validate":"npm run lint && npm run test && npm run build","lint:watch":"onchange \"src/**/*.js\" \"tests/**/*.js\" -- npm run lint:fix","test:watch":"onchange \"src/**/*.js\" \"src/__tests__/**/*.js\" -- npm run test"},"_npmUser":{"name":"testing-library-bot","email":"testinglibraryoss@gmail.com"},"repository":{"url":"git+https://github.com/testing-library/jasmine-dom.git","type":"git"},"_npmVersion":"8.19.3","description":"Custom Jasmine matchers for testing DOM elements","directories":{},"_nodeVersion":"16.19.0","dependencies":{"css":"^3.0.0","chalk":"^4.1.0","lodash":"^4.17.21","aria-query":"^5.1.3","css.escape":"^1.5.1","dom-accessibility-api":"^0.5.16"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","jsdom":"^16.2.1","eslint":"^8.29.0","jasmine":"^4.5.0","onchange":"^7.1.0","prettier":"^2.8.1","@babel/cli":"^7.19.3","@babel/core":"^7.20.5","kcd-scripts":"^12.3.0","@types/jasmine":"^4.3.1","@babel/register":"^7.18.9","@babel/preset-env":"^7.20.2","jasmine-reporters":"^2.5.2","babel-plugin-istanbul":"^6.1.1","jasmine-spec-reporter":"^7.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","babel-plugin-dynamic-import-node":"^2.3.3"},"_npmOperationalInternal":{"tmp":"tmp/jasmine-dom_1.3.3_1674488108051_0.14785452837841895","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-08-23T06:51:33.383Z","modified":"2026-08-07T04:22:46.304Z","1.0.2":"2020-08-23T06:51:33.735Z","1.0.3":"2020-08-23T21:57:49.566Z","1.1.0":"2020-08-28T14:08:28.554Z","1.1.1":"2020-11-16T04:15:30.116Z","1.2.0":"2020-12-13T19:38:09.339Z","1.3.2":"2022-12-14T05:55:29.442Z","1.3.3":"2023-01-23T15:35:08.204Z"},"bugs":{"url":"https://github.com/testing-library/jasmine-dom/issues"},"author":{"url":"https://github.com/brrianalexis","name":"Brian Alexis Michel","email":"brrianalexis.dev@gmail.com"},"license":"MIT","homepage":"https://github.com/testing-library/jasmine-dom#readme","keywords":["testing","dom","jasmine","matchers","jsdom"],"repository":{"url":"git+https://github.com/testing-library/jasmine-dom.git","type":"git"},"description":"Custom Jasmine matchers for testing DOM elements","maintainers":[{"email":"testinglibraryoss@gmail.com","name":"testing-library-bot"},{"email":"me@kentcdodds.com","name":"kentcdodds"},{"email":"timdeschryver@outlook.com","name":"timdeschryver"},{"email":"patrick.hulce@gmail.com","name":"patrickhulce"},{"email":"dfcook@hotmail.com","name":"dfcook"},{"email":"polvara@gmail.com","name":"gpx"},{"email":"mpeyper7@gmail.com","name":"mpeyper"},{"email":"rahim.alwer@gmail.com","name":"mihar-22"},{"email":"patrick.gotthardt@trivago.com","name":"pago"},{"email":"carson.mckinstry@gmail.com","name":"cmckinstry"},{"email":"thymikee@gmail.com","name":"thymikee"},{"email":"brrianalexis.dev@gmail.com","name":"brrianalexis"},{"email":"decroockjovi@gmail.com","name":"jdecroock"},{"email":"mdjastrzebski@gmail.com","name":"mdjastrzebski"},{"email":"silbermann.sebastian@gmail.com","name":"eps1lon"},{"email":"mail@lenzw.de","name":"phryneas"},{"email":"snowystinger@gmail.com","name":"snowystinger"},{"email":"matanbobi@gmail.com","name":"matanbobi"}],"readme":"<div align=\"center\">\n<h1>jasmine-dom</h1>\n\n<a href=\"https://www.joypixels.com/profiles/emoji/sloth/_/5.0\">\n  <img\n    height=\"80\"\n    width=\"80\"\n    alt=\"sloth\"\n    src=\"https://github.com/testing-library/jasmine-dom/blob/main/other/sloth.png?raw=true\"\n  >\n</a>\n\n<p>Custom Jasmine matchers to test the state of the DOM</p>\n\n</div>\n\n---\n\n[![Build Status][build-badge]][build]\n[![Code Coverage][coverage-badge]][coverage]\n[![semantic-release][semantic-release-badge]][semantic-release]\n[![version][version-badge]][package]\n[![downloads][downloads-badge]][npmtrends]\n[![MIT License][license-badge]][license]\n\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors-)\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\n[![PRs Welcome][prs-badge]][prs]\n[![Code of Conduct][coc-badge]][coc]\n[![Discord][discord-badge]][discord]\n\n[![Watch on GitHub][github-watch-badge]][github-watch]\n[![Star on GitHub][github-star-badge]][github-star]\n[![Tweet][twitter-badge]][twitter]\n\n## The problem\n\nYou want to use [Jasmine][jasmine] to write tests that assert various things about the state of the DOM. As part of that goal, you want to avoid all the repetitive patterns that arise in doing so. Checking for an element's attributes, its text content, its css classes, you name it.\n\n## This solution\n\nThe `jasmine-dom` library provides a set of custom Jasmine matchers that you can use to extend Jasmine. These will make your tests more declarative, clear to read and to maintain.\n\n<!-- START doctoc generated TOC please keep comment here to allow auto update -->\n<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Custom matchers](#custom-matchers)\n  - [`toBeDisabled`](#tobedisabled)\n  - [`toBeEnabled`](#tobeenabled)\n  - [`toBeEmptyDOMElement`](#tobeemptydomelement)\n  - [`toBeInTheDocument`](#tobeinthedocument)\n  - [`toBeInvalid`](#tobeinvalid)\n  - [`toBeRequired`](#toberequired)\n  - [`toBeValid`](#tobevalid)\n  - [`toBeVisible`](#tobevisible)\n  - [`toContainHTML`](#tocontainhtml)\n  - [`toContainElement`](#tocontainelement)\n  - [`toHaveAccessibleDescription`](#tohaveaccessibledescription)\n  - [`toHaveAccessibleName`](#tohaveaccessiblename)\n  - [`toHaveAttribute`](#tohaveattribute)\n  - [`toHaveClassName`](#tohaveclassname)\n  - [`toHaveFocus`](#tohavefocus)\n  - [`toHaveFormValues`](#tohaveformvalues)\n  - [`toHaveStyle`](#tohavestyle)\n  - [`toHaveTextContent`](#tohavetextcontent)\n  - [`toHaveValue`](#tohavevalue)\n  - [`toHaveDisplayValue`](#tohavedisplayvalue)\n  - [`toBeChecked`](#tobechecked)\n  - [`toBePartiallyChecked`](#tobepartiallychecked)\n  - [`toHaveErrorMessage`](#tohaveerrormessage)\n  - [`toHaveDescription`](#tohavedescription)\n- [Inspiration](#inspiration)\n- [Other Solutions](#other-solutions)\n- [Guiding Principles](#guiding-principles)\n- [Contributors](#contributors)\n- [LICENSE](#license)\n\n<!-- END doctoc generated TOC please keep comment here to allow auto update -->\n\n## Installation\n\nThis module is distributed via [npm][npm] which is bundled with [node][node] and should be installed as one of your project's `devDependencies`.\n\nUsing npm:\n\n```\nnpm install --save-dev @testing-library/jasmine-dom\n```\n\nor for installation using [yarn][yarn] package manager:\n\n```\nyarn add --dev @testing-library/jasmine-dom\n```\n\n## Usage\n\n### With JavaScript\n\nYou should have a directory for helpers specified inside the helpers array in your `jasmine.json` file.\nExample:\n\n```json\n{\n\t\"spec_dir\": \"src/__tests__\",\n\t\"spec_files\": [\"**/*.test.js\"],\n\t\"helpers\": [\"helpers/**/*.js\"],\n\t\"stopSpecOnExpectationFailure\": false,\n\t\"random\": false\n}\n```\n\nMake a new file inside that directory, import @testing-library/jasmine-dom and add the matchers like so:\n\n```javascript\nimport JasmineDOM from '@testing-library/jasmine-dom';\n\nbeforeAll(() => {\n\tjasmine.getEnv().addMatchers(JasmineDOM);\n});\n```\n\n### With TypeScript\n\nAdd `\"@testing-library/jasmine-dom\"` to `types` in the tests `tsconfig` (e.g. `tsconfig.spec.json` in an Angular project).\n\nExample:\n\n```json\n{\n\t\"compilerOptions\": {\n\t\t\"types\": [\"jasmine\", \"node\", \"@testing-library/jasmine-dom\"]\n\t}\n}\n```\n\nIn your tests setup file, (`test.ts` in an Angular project) import jasmine-dom and add the matchers like so:\n\n```typescript\nimport JasmineDOM from '@testing-library/jasmine-dom/dist';\n\nbeforeAll(() => {\n\tjasmine.getEnv().addMatchers(JasmineDOM);\n});\n```\n\n## Matchers\n\nThis library is meant to be a Jasmine version of `@testing-library/jest-dom` library. As such, it provides the same set of matchers and the same functionality for each one, with a couple of minor diferences:\n\n- `toBeEmpty()` is not included, in favor of `toBeEmptyDOMElement()`\n- `toBeInTheDOM()` is not included, since it's deprecated\n- `toHaveClass()` is renamed as `toHaveClassName()` to prevent name collision with Jasmine's `toHaveClass()`\n\n### `toBeDisabled`\n\n```typescript\ntoBeDisabled();\n```\n\nThis allows you to check whether an element is disabled from the user's\nperspective.\n\nIt matches if the element is a form control and the `disabled` attribute is\nspecified on this element or the element is a descendant of a form element with\na `disabled` attribute.\n\nAccording to the specification, the following elements can be\n[actually disabled](https://html.spec.whatwg.org/multipage/semantics-other.html#disabled-elements):\n`button`, `input`, `select`, `textarea`, `optgroup`, `option`, `fieldset`.\n\n#### Examples\n\n```html\n<button data-testid=\"button\" type=\"submit\" disabled>submit</button>\n<fieldset disabled><input type=\"text\" data-testid=\"input\" /></fieldset>\n<a href=\"...\" disabled>link</a>\n```\n\n```javascript\nexpect(getByTestId('button')).toBeDisabled();\nexpect(getByTestId('input')).toBeDisabled();\nexpect(getByText('link')).not.toBeDisabled();\n```\n\n<hr />\n\n### `toBeEnabled`\n\n```typescript\ntoBeEnabled();\n```\n\nThis allows you to check whether an element is not disabled from the user's\nperspective.\n\nIt works like `not.toBeDisabled()`. Use this matcher to avoid double negation in\nyour tests.\n\n<hr />\n\n### `toBeEmptyDOMElement`\n\n```typescript\ntoBeEmptyDOMElement();\n```\n\nThis allows you to assert whether an element has content or not.\n\n#### Examples\n\n```html\n<span data-testid=\"not-empty\"><span data-testid=\"empty\"></span></span>\n```\n\n```javascript\nexpect(getByTestId('empty')).toBeEmptyDOMElement();\nexpect(getByTestId('not-empty')).not.toBeEmptyDOMElement();\n```\n\n<hr />\n\n### `toBeInTheDocument`\n\n```typescript\ntoBeInTheDocument();\n```\n\nThis allows you to assert whether an element is present in the document or not.\n\n#### Examples\n\n```html\n<span data-testid=\"html-element\"><span>Html Element</span></span> <svg data-testid=\"svg-element\"></svg>\n```\n\n```javascript\nexpect(getByTestId(document.documentElement, 'html-element')).toBeInTheDocument();\nexpect(getByTestId(document.documentElement, 'svg-element')).toBeInTheDocument();\nexpect(queryByTestId(document.documentElement, 'does-not-exist')).not.toBeInTheDocument();\n```\n\n> Note: This matcher does not find detached elements. The element must be added\n> to the document to be found by toBeInTheDocument. If you desire to search in a\n> detached element please use: [`toContainElement`](#tocontainelement)\n\n<hr />\n\n### `toBeInvalid`\n\n```typescript\ntoBeInvalid();\n```\n\nThis allows you to check if an element, is currently invalid.\n\nAn element is invalid if it has an\n[`aria-invalid` attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-invalid_attribute)\nwith no value or a value of `\"true\"`, or if the result of\n[`checkValidity()`](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation)\nis `false`.\n\n#### Examples\n\n```html\n<input data-testid=\"no-aria-invalid\" />\n<input data-testid=\"aria-invalid\" aria-invalid />\n<input data-testid=\"aria-invalid-value\" aria-invalid=\"true\" />\n<input data-testid=\"aria-invalid-false\" aria-invalid=\"false\" />\n\n<form data-testid=\"valid-form\">\n\t<input />\n</form>\n\n<form data-testid=\"invalid-form\">\n\t<input required />\n</form>\n```\n\n```javascript\nexpect(getByTestId('no-aria-invalid')).not.toBeInvalid();\nexpect(getByTestId('aria-invalid')).toBeInvalid();\nexpect(getByTestId('aria-invalid-value')).toBeInvalid();\nexpect(getByTestId('aria-invalid-false')).not.toBeInvalid();\n\nexpect(getByTestId('valid-form')).not.toBeInvalid();\nexpect(getByTestId('invalid-form')).toBeInvalid();\n```\n\n<hr />\n\n### `toBeRequired`\n\n```typescript\ntoBeRequired();\n```\n\nThis allows you to check if a form element is currently required.\n\nAn element is required if it is having a `required` or `aria-required=\"true\"`\nattribute.\n\n#### Examples\n\n```html\n<input data-testid=\"required-input\" required />\n<input data-testid=\"aria-required-input\" aria-required=\"true\" />\n<input data-testid=\"conflicted-input\" required aria-required=\"false\" />\n<input data-testid=\"aria-not-required-input\" aria-required=\"false\" />\n<input data-testid=\"optional-input\" />\n<input data-testid=\"unsupported-type\" type=\"image\" required />\n<select data-testid=\"select\" required></select>\n<textarea data-testid=\"textarea\" required></textarea>\n<div data-testid=\"supported-role\" role=\"tree\" required></div>\n<div data-testid=\"supported-role-aria\" role=\"tree\" aria-required=\"true\"></div>\n```\n\n```javascript\nexpect(getByTestId('required-input')).toBeRequired();\nexpect(getByTestId('aria-required-input')).toBeRequired();\nexpect(getByTestId('conflicted-input')).toBeRequired();\nexpect(getByTestId('aria-not-required-input')).not.toBeRequired();\nexpect(getByTestId('optional-input')).not.toBeRequired();\nexpect(getByTestId('unsupported-type')).not.toBeRequired();\nexpect(getByTestId('select')).toBeRequired();\nexpect(getByTestId('textarea')).toBeRequired();\nexpect(getByTestId('supported-role')).not.toBeRequired();\nexpect(getByTestId('supported-role-aria')).toBeRequired();\n```\n\n<hr />\n\n### `toBeValid`\n\n```typescript\ntoBeValid();\n```\n\nThis allows you to check if the value of an element, is currently valid.\n\nAn element is valid if it has no\n[`aria-invalid` attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-invalid_attribute)s\nor an attribute value of `\"false\"`. The result of\n[`checkValidity()`](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation)\nmust also be `true` if it's a form element.\n\n#### Examples\n\n```html\n<input data-testid=\"no-aria-invalid\" />\n<input data-testid=\"aria-invalid\" aria-invalid />\n<input data-testid=\"aria-invalid-value\" aria-invalid=\"true\" />\n<input data-testid=\"aria-invalid-false\" aria-invalid=\"false\" />\n\n<form data-testid=\"valid-form\">\n\t<input />\n</form>\n\n<form data-testid=\"invalid-form\">\n\t<input required />\n</form>\n```\n\n```javascript\nexpect(getByTestId('no-aria-invalid')).toBeValid();\nexpect(getByTestId('aria-invalid')).not.toBeValid();\nexpect(getByTestId('aria-invalid-value')).not.toBeValid();\nexpect(getByTestId('aria-invalid-false')).toBeValid();\n\nexpect(getByTestId('valid-form')).toBeValid();\nexpect(getByTestId('invalid-form')).not.toBeValid();\n```\n\n<hr />\n\n### `toBeVisible`\n\n```typescript\ntoBeVisible();\n```\n\nThis allows you to check if an element is currently visible to the user.\n\nAn element is visible if **all** the following conditions are met:\n\n- it does not have its css property `display` set to `none`\n- it does not have its css property `visibility` set to either `hidden` or\n  `collapse`\n- it does not have its css property `opacity` set to `0`\n- its parent element is also visible (and so on up to the top of the DOM tree)\n- it does not have the\n  [`hidden`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden)\n  attribute\n- if `<details />` it has the `open` attribute\n\n#### Examples\n\n```html\n<div data-testid=\"zero-opacity\" style=\"opacity: 0\">Zero Opacity Example</div>\n<div data-testid=\"visibility-hidden\" style=\"visibility: hidden\">Visibility Hidden Example</div>\n<div data-testid=\"display-none\" style=\"display: none\">Display None Example</div>\n<div style=\"opacity: 0\">\n\t<span data-testid=\"hidden-parent\">Hidden Parent Example</span>\n</div>\n<div data-testid=\"visible\">Visible Example</div>\n<div data-testid=\"hidden-attribute\" hidden>Hidden Attribute Example</div>\n```\n\n```javascript\nexpect(getByText('Zero Opacity Example')).not.toBeVisible();\nexpect(getByText('Visibility Hidden Example')).not.toBeVisible();\nexpect(getByText('Display None Example')).not.toBeVisible();\nexpect(getByText('Hidden Parent Example')).not.toBeVisible();\nexpect(getByText('Visible Example')).toBeVisible();\nexpect(getByText('Hidden Attribute Example')).not.toBeVisible();\n```\n\n<hr />\n\n### `toContainHTML`\n\n```typescript\ntoContainHTML(htmlText: string)\n```\n\nAssert whether a string representing a HTML element is contained in another\nelement. The string should contain valid html, and not any incomplete html.\n\n#### Examples\n\n```html\n<span data-testid=\"parent\"><span data-testid=\"child\"></span></span>\n```\n\n```javascript\n// These are valid uses\nexpect(getByTestId('parent')).toContainHTML('<span data-testid=\"child\"></span>');\nexpect(getByTestId('parent')).toContainHTML('<span data-testid=\"child\" />');\nexpect(getByTestId('parent')).not.toContainHTML('<br />');\n\n// These won't work\nexpect(getByTestId('parent')).toContainHTML('data-testid=\"child\"');\nexpect(getByTestId('parent')).toContainHTML('data-testid');\nexpect(getByTestId('parent')).toContainHTML('</span>');\n```\n\n> Chances are you probably do not need to use this matcher. We encourage testing\n> from the perspective of how the user perceives the app in a browser. That's\n> why testing against a specific DOM structure is not advised.\n>\n> It could be useful in situations where the code being tested renders html that\n> was obtained from an external source, and you want to validate that that html\n> code was used as intended.\n>\n> It should not be used to check DOM structure that you control. Please use\n> [`toContainElement`](#tocontainelement) instead.\n\n<hr />\n\n### `toContainElement`\n\n```typescript\ntoContainElement(element: HTMLElement | SVGElement | null)\n```\n\nThis allows you to assert whether an element contains another element as a\ndescendant or not.\n\n#### Examples\n\n```html\n<span data-testid=\"ancestor\"><span data-testid=\"descendant\"></span></span>\n```\n\n```javascript\nconst ancestor = getByTestId('ancestor');\nconst descendant = getByTestId('descendant');\nconst nonExistantElement = getByTestId('does-not-exist');\n\nexpect(ancestor).toContainElement(descendant);\nexpect(descendant).not.toContainElement(ancestor);\nexpect(ancestor).not.toContainElement(nonExistantElement);\n```\n\n<hr />\n\n### `toHaveAccessibleDescription`\n\n```typescript\ntoHaveAccessibleDescription(expectedAccessibleDescription?: string | RegExp)\n```\n\nThis allows you to assert that an element has the expected\n[accessible description](https://w3c.github.io/accname/).\n\nYou can pass the exact string of the expected accessible description, or you can\nmake a partial match passing a regular expression, or by using\n[jasmine.stringContaining](https://jasmine.github.io/api/edge/jasmine#.stringContaining)/[jasmine.stringMatching](https://jasmine.github.io/api/edge/jasmine#.stringMatching).\n\n#### Examples\n\n```html\n<a data-testid=\"link\" href=\"/\" aria-label=\"Home page\" title=\"A link to start over\">Start</a>\n<a data-testid=\"extra-link\" href=\"/about\" aria-label=\"About page\">About</a>\n<img src=\"avatar.jpg\" data-testid=\"avatar\" alt=\"User profile pic\" />\n<img src=\"logo.jpg\" data-testid=\"logo\" alt=\"Company logo\" aria-describedby=\"t1\" />\n<span id=\"t1\" role=\"presentation\">The logo of Our Company</span>\n```\n\n```js\nexpect(getByTestId('link')).toHaveAccessibleDescription();\nexpect(getByTestId('link')).toHaveAccessibleDescription('A link to start over');\nexpect(getByTestId('link')).not.toHaveAccessibleDescription('Home page');\nexpect(getByTestId('extra-link')).not.toHaveAccessibleDescription();\nexpect(getByTestId('avatar')).not.toHaveAccessibleDescription();\nexpect(getByTestId('logo')).not.toHaveAccessibleDescription('Company logo');\nexpect(getByTestId('logo')).toHaveAccessibleDescription('The logo of Our Company');\n```\n\n<hr />\n\n### `toHaveAccessibleName`\n\n```typescript\ntoHaveAccessibleName(expectedAccessibleName?: string | RegExp)\n```\n\nThis allows you to assert that an element has the expected\n[accessible name](https://w3c.github.io/accname/). It is useful, for instance,\nto assert that form elements and buttons are properly labelled.\n\nYou can pass the exact string of the expected accessible name, or you can make a\npartial match passing a regular expression, or by using\n[jasmine.stringContaining](https://jasmine.github.io/api/edge/jasmine#.stringContaining)/[jasmine.stringMatching](https://jasmine.github.io/api/edge/jasmine#.stringMatching).\n\n#### Examples\n\n```html\n<img data-testid=\"img-alt\" src=\"\" alt=\"Test alt\" />\n<img data-testid=\"img-empty-alt\" src=\"\" alt=\"\" />\n<svg data-testid=\"svg-title\"><title>Test title</title></svg>\n<button data-testid=\"button-img-alt\"><img src=\"\" alt=\"Test\" /></button>\n<p><img data-testid=\"img-paragraph\" src=\"\" alt=\"\" /> Test content</p>\n<button data-testid=\"svg-button\"><svg><title>Test</title></svg></p>\n<div><svg data-testid=\"svg-without-title\"></svg></div>\n<input data-testid=\"input-title\" title=\"test\" />\n```\n\n```javascript\nexpect(getByTestId('img-alt')).toHaveAccessibleName('Test alt');\nexpect(getByTestId('img-empty-alt')).not.toHaveAccessibleName();\nexpect(getByTestId('svg-title')).toHaveAccessibleName('Test title');\nexpect(getByTestId('button-img-alt')).toHaveAccessibleName();\nexpect(getByTestId('img-paragraph')).not.toHaveAccessibleName();\nexpect(getByTestId('svg-button')).toHaveAccessibleName();\nexpect(getByTestId('svg-without-title')).not.toHaveAccessibleName();\nexpect(getByTestId('input-title')).toHaveAccessibleName();\n```\n\n<hr />\n\n### `toHaveAttribute`\n\n```typescript\ntoHaveAttribute(attr: string, value?: any)\n```\n\nThis allows you to check whether the given element has an attribute or not. You\ncan also optionally check that the attribute has a specific expected value or\npartial match using a RegExp.\n\n#### Examples\n\n```html\n<button data-testid=\"ok-button\" type=\"submit\" disabled>ok</button>\n```\n\n```javascript\nconst button = getByTestId('ok-button')\n\nexpect(button).toHaveAttribute('disabled')\nexpect(button).toHaveAttribute('type', 'submit')\nexpect(button).not.toHaveAttribute('type', 'button')\n\nexpect(button).toHaveAttribute('type', /sub/))\nexpect(button).toHaveAttribute('type', /but/))\n```\n\n<hr />\n\n### `toHaveClassName`\n\n```typescript\ntoHaveClassName(...classNames: string[], options?: {exact: boolean})\n```\n\nThis allows you to check whether the given element has certain classes within\nits `class` attribute.\n\nYou must provide at least one class, unless you are asserting that an element\ndoes not have any classes.\n\n#### Examples\n\n```html\n<button data-testid=\"delete-button\" class=\"btn extra btn-danger\">Delete item</button>\n<button data-testid=\"no-classes\">No Classes</button>\n```\n\n```javascript\nconst deleteButton = getByTestId('delete-button');\nconst noClasses = getByTestId('no-classes');\n\nexpect(deleteButton).toHaveClassName('extra');\nexpect(deleteButton).toHaveClassName('btn-danger btn');\nexpect(deleteButton).toHaveClassName('btn-danger', 'btn');\nexpect(deleteButton).not.toHaveClassName('btn-link');\n\nexpect(deleteButton).toHaveClassName('btn-danger extra btn', { exact: true }); // to check if the element has EXACTLY a set of classes\nexpect(deleteButton).not.toHaveClassName('btn-danger extra', { exact: true }); // if it has more than expected it is going to fail\n\nexpect(noClasses).not.toHaveClassName();\n```\n\n<hr />\n\n### `toHaveFocus`\n\n```typescript\ntoHaveFocus();\n```\n\nThis allows you to assert whether an element has focus or not.\n\n#### Examples\n\n```html\n<div><input type=\"text\" data-testid=\"element-to-focus\" /></div>\n```\n\n```javascript\nconst input = getByTestId('element-to-focus');\n\ninput.focus();\nexpect(input).toHaveFocus();\n\ninput.blur();\nexpect(input).not.toHaveFocus();\n```\n\n<hr />\n\n### `toHaveFormValues`\n\n```typescript\ntoHaveFormValues(expectedValues: {\n  [name: string]: any\n})\n```\n\nThis allows you to check if a form or fieldset contains form controls for each\ngiven name, and having the specified value.\n\n> It is important to stress that this matcher can only be invoked on a [form][]\n> or a [fieldset][] element.\n>\n> This allows it to take advantage of the [.elements][] property in `form` and\n> `fieldset` to reliably fetch all form controls within them.\n>\n> This also avoids the possibility that users provide a container that contains\n> more than one `form`, thereby intermixing form controls that are not related,\n> and could even conflict with one another.\n\nThis matcher abstracts away the particularities with which a form control value\nis obtained depending on the type of form control. For instance, `<input>`\nelements have a `value` attribute, but `<select>` elements do not. Here's a list\nof all cases covered:\n\n- `<input type=\"number\">` elements return the value as a **number**, instead of\n  a string.\n- `<input type=\"checkbox\">` elements:\n  - if there's a single one with the given `name` attribute, it is treated as a\n    **boolean**, returning `true` if the checkbox is checked, `false` if\n    unchecked.\n  - if there's more than one checkbox with the same `name` attribute, they are\n    all treated collectively as a single form control, which returns the value\n    as an **array** containing all the values of the selected checkboxes in the\n    collection.\n- `<input type=\"radio\">` elements are all grouped by the `name` attribute, and\n  such a group treated as a single form control. This form control returns the\n  value as a **string** corresponding to the `value` attribute of the selected\n  radio button within the group.\n- `<input type=\"text\">` elements return the value as a **string**. This also\n  applies to `<input>` elements having any other possible `type` attribute\n  that's not explicitly covered in different rules above (e.g. `search`,\n  `email`, `date`, `password`, `hidden`, etc.)\n- `<select>` elements without the `multiple` attribute return the value as a\n  **string** corresponding to the `value` attribute of the selected `option`, or\n  `undefined` if there's no selected option.\n- `<select multiple>` elements return the value as an **array** containing all\n  the values of the [selected options][].\n- `<textarea>` elements return their value as a **string**. The value\n  corresponds to their node content.\n\nThe above rules make it easy, for instance, to switch from using a single select\ncontrol to using a group of radio buttons. Or to switch from a multi select\ncontrol, to using a group of checkboxes. The resulting set of form values used\nby this matcher to compare against would be the same.\n\n[selected options]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedOptions\n[form]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement\n[fieldset]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement\n[.elements]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/elements\n\n#### Examples\n\n```html\n<form data-testid=\"login-form\">\n\t<input type=\"text\" name=\"username\" value=\"jane.doe\" />\n\t<input type=\"password\" name=\"password\" value=\"12345678\" />\n\t<input type=\"checkbox\" name=\"rememberMe\" checked />\n\t<button type=\"submit\">Sign in</button>\n</form>\n```\n\n```javascript\nexpect(getByTestId('login-form')).toHaveFormValues({\n\tusername: 'jane.doe',\n\trememberMe: true,\n});\n```\n\n### `toHaveStyle`\n\n```typescript\ntoHaveStyle(css: string | object)\n```\n\nThis allows you to check if a certain element has some specific css properties\nwith specific values applied. It matches only if the element has _all_ the\nexpected properties applied, not just some of them.\n\n#### Examples\n\n```html\n<button data-testid=\"delete-button\" style=\"display: none; background-color: red\">Delete item</button>\n```\n\n```javascript\nconst button = getByTestId('delete-button');\n\nexpect(button).toHaveStyle('display: none');\nexpect(button).toHaveStyle({ display: 'none' });\nexpect(button).toHaveStyle(`\n  background-color: red;\n  display: none;\n`);\nexpect(button).toHaveStyle({\n\tbackgroundColor: 'red',\n\tdisplay: 'none',\n});\nexpect(button).not.toHaveStyle(`\n  background-color: blue;\n  display: none;\n`);\nexpect(button).not.toHaveStyle({\n\tbackgroundColor: 'blue',\n\tdisplay: 'none',\n});\n```\n\nThis also works with rules that are applied to the element via a class name for\nwhich some rules are defined in a stylesheet currently active in the document.\nThe usual rules of css precedence apply.\n\n<hr />\n\n### `toHaveTextContent`\n\n```typescript\ntoHaveTextContent(text: string | RegExp, options?: {normalizeWhitespace: boolean})\n```\n\nThis allows you to check whether the given element has a text content or not.\n\nWhen a `string` argument is passed through, it will perform a partial\ncase-sensitive match to the element content.\n\nTo perform a case-insensitive match, you can use a `RegExp` with the `/i`\nmodifier.\n\nIf you want to match the whole content, you can use a `RegExp` to do it.\n\n#### Examples\n\n```html\n<span data-testid=\"text-content\">Text Content</span>\n```\n\n```javascript\nconst element = getByTestId('text-content');\n\nexpect(element).toHaveTextContent('Content');\nexpect(element).toHaveTextContent(/^Text Content$/); // to match the whole content\nexpect(element).toHaveTextContent(/content$/i); // to use case-insensitive match\nexpect(element).not.toHaveTextContent('content');\n```\n\n<hr />\n\n### `toHaveValue`\n\n```typescript\ntoHaveValue(value: string | string[] | number)\n```\n\nThis allows you to check whether the given form element has the specified value.\nIt accepts `<input>`, `<select>` and `<textarea>` elements with the exception of\n`<input type=\"checkbox\">` and `<input type=\"radio\">`, which can be meaningfully\nmatched only using [`toBeChecked`](#tobechecked) or\n[`toHaveFormValues`](#tohaveformvalues).\n\nFor all other form elements, the value is matched using the same algorithm as in\n[`toHaveFormValues`](#tohaveformvalues) does.\n\n#### Examples\n\n```html\n<input type=\"text\" value=\"text\" data-testid=\"input-text\" />\n<input type=\"number\" value=\"5\" data-testid=\"input-number\" />\n<input type=\"text\" data-testid=\"input-empty\" />\n<select data-testid=\"multiple\" multiple data-testid=\"select-number\">\n\t<option value=\"first\">First Value</option>\n\t<option value=\"second\" selected>Second Value</option>\n\t<option value=\"third\" selected>Third Value</option>\n</select>\n```\n\n##### Using DOM Testing Library\n\n```javascript\nconst textInput = screen.getByTestId('input-text');\nconst numberInput = screen.getByTestId('input-number');\nconst emptyInput = screen.getByTestId('input-empty');\nconst selectInput = screen.getByTestId('select-number');\n\nexpect(textInput).toHaveValue('text');\nexpect(numberInput).toHaveValue(5);\nexpect(emptyInput).not.toHaveValue();\nexpect(selectInput).not.toHaveValue(['second', 'third']);\n```\n\n<hr />\n\n### `toHaveDisplayValue`\n\n```typescript\ntoHaveDisplayValue(value: string | RegExp | (string|RegExp)[])\n```\n\nThis allows you to check whether the given form element has the specified\ndisplayed value (the one the end user will see). It accepts `<input>`,\n`<select>` and `<textarea>` elements with the exception of\n`<input type=\"checkbox\">` and `<input type=\"radio\">`, which can be meaningfully\nmatched only using [`toBeChecked`](#tobechecked) or\n[`toHaveFormValues`](#tohaveformvalues).\n\n#### Examples\n\n```html\n<label for=\"input-example\">First name</label>\n<input type=\"text\" id=\"input-example\" value=\"Luca\" />\n\n<label for=\"textarea-example\">Description</label>\n<textarea id=\"textarea-example\">An example description here.</textarea>\n\n<label for=\"single-select-example\">Fruit</label>\n<select id=\"single-select-example\">\n\t<option value=\"\">Select a fruit...</option>\n\t<option value=\"banana\">Banana</option>\n\t<option value=\"ananas\">Ananas</option>\n\t<option value=\"avocado\">Avocado</option>\n</select>\n\n<label for=\"mutiple-select-example\">Fruits</label>\n<select id=\"multiple-select-example\" multiple>\n\t<option value=\"\">Select a fruit...</option>\n\t<option value=\"banana\" selected>Banana</option>\n\t<option value=\"ananas\">Ananas</option>\n\t<option value=\"avocado\" selected>Avocado</option>\n</select>\n```\n\n##### Using DOM Testing Library\n\n```javascript\nconst input = screen.getByLabelText('First name');\nconst textarea = screen.getByLabelText('Description');\nconst selectSingle = screen.getByLabelText('Fruit');\nconst selectMultiple = screen.getByLabelText('Fruits');\n\nexpect(input).toHaveDisplayValue('Luca');\nexpect(input).toHaveDisplayValue(/Luc/);\nexpect(textarea).toHaveDisplayValue('An example description here.');\nexpect(textarea).toHaveDisplayValue(/example/);\nexpect(selectSingle).toHaveDisplayValue('Select a fruit...');\nexpect(selectSingle).toHaveDisplayValue(/Select/);\nexpect(selectMultiple).toHaveDisplayValue([/Avocado/, 'Banana']);\n```\n\n<hr />\n\n### `toBeChecked`\n\n```typescript\ntoBeChecked();\n```\n\nThis allows you to check whether the given element is checked. It accepts an\n`input` of type `checkbox` or `radio` and elements with a `role` of `checkbox`,\n`radio` or `switch` with a valid `aria-checked` attribute of `\"true\"` or\n`\"false\"`.\n\n#### Examples\n\n```html\n<input type=\"checkbox\" checked data-testid=\"input-checkbox-checked\" />\n<input type=\"checkbox\" data-testid=\"input-checkbox-unchecked\" />\n<div role=\"checkbox\" aria-checked=\"true\" data-testid=\"aria-checkbox-checked\" />\n<div role=\"checkbox\" aria-checked=\"false\" data-testid=\"aria-checkbox-unchecked\" />\n\n<input type=\"radio\" checked value=\"foo\" data-testid=\"input-radio-checked\" />\n<input type=\"radio\" value=\"foo\" data-testid=\"input-radio-unchecked\" />\n<div role=\"radio\" aria-checked=\"true\" data-testid=\"aria-radio-checked\" />\n<div role=\"radio\" aria-checked=\"false\" data-testid=\"aria-radio-unchecked\" />\n<div role=\"switch\" aria-checked=\"true\" data-testid=\"aria-switch-checked\" />\n<div role=\"switch\" aria-checked=\"false\" data-testid=\"aria-switch-unchecked\" />\n```\n\n```javascript\nconst inputCheckboxChecked = getByTestId('input-checkbox-checked');\nconst inputCheckboxUnchecked = getByTestId('input-checkbox-unchecked');\nconst ariaCheckboxChecked = getByTestId('aria-checkbox-checked');\nconst ariaCheckboxUnchecked = getByTestId('aria-checkbox-unchecked');\nexpect(inputCheckboxChecked).toBeChecked();\nexpect(inputCheckboxUnchecked).not.toBeChecked();\nexpect(ariaCheckboxChecked).toBeChecked();\nexpect(ariaCheckboxUnchecked).not.toBeChecked();\n\nconst inputRadioChecked = getByTestId('input-radio-checked');\nconst inputRadioUnchecked = getByTestId('input-radio-unchecked');\nconst ariaRadioChecked = getByTestId('aria-radio-checked');\nconst ariaRadioUnchecked = getByTestId('aria-radio-unchecked');\nexpect(inputRadioChecked).toBeChecked();\nexpect(inputRadioUnchecked).not.toBeChecked();\nexpect(ariaRadioChecked).toBeChecked();\nexpect(ariaRadioUnchecked).not.toBeChecked();\n\nconst ariaSwitchChecked = getByTestId('aria-switch-checked');\nconst ariaSwitchUnchecked = getByTestId('aria-switch-unchecked');\nexpect(ariaSwitchChecked).toBeChecked();\nexpect(ariaSwitchUnchecked).not.toBeChecked();\n```\n\n<hr />\n\n### `toBePartiallyChecked`\n\n```typescript\ntoBePartiallyChecked();\n```\n\nThis allows you to check whether the given element is partially checked. It\naccepts an `input` of type `checkbox` and elements with a `role` of `checkbox`\nwith a `aria-checked=\"mixed\"`, or `input` of type `checkbox` with\n`indeterminate` set to `true`\n\n#### Examples\n\n```html\n<input type=\"checkbox\" aria-checked=\"mixed\" data-testid=\"aria-checkbox-mixed\" />\n<input type=\"checkbox\" checked data-testid=\"input-checkbox-checked\" />\n<input type=\"checkbox\" data-testid=\"input-checkbox-unchecked\" />\n<div role=\"checkbox\" aria-checked=\"true\" data-testid=\"aria-checkbox-checked\" />\n<div role=\"checkbox\" aria-checked=\"false\" data-testid=\"aria-checkbox-unchecked\" />\n<input type=\"checkbox\" data-testid=\"input-checkbox-indeterminate\" />\n```\n\n```javascript\nconst ariaCheckboxMixed = getByTestId('aria-checkbox-mixed');\nconst inputCheckboxChecked = getByTestId('input-checkbox-checked');\nconst inputCheckboxUnchecked = getByTestId('input-checkbox-unchecked');\nconst ariaCheckboxChecked = getByTestId('aria-checkbox-checked');\nconst ariaCheckboxUnchecked = getByTestId('aria-checkbox-unchecked');\nconst inputCheckboxIndeterminate = getByTestId('input-checkbox-indeterminate');\n\nexpect(ariaCheckboxMixed).toBePartiallyChecked();\nexpect(inputCheckboxChecked).not.toBePartiallyChecked();\nexpect(inputCheckboxUnchecked).not.toBePartiallyChecked();\nexpect(ariaCheckboxChecked).not.toBePartiallyChecked();\nexpect(ariaCheckboxUnchecked).not.toBePartiallyChecked();\n\ninputCheckboxIndeterminate.indeterminate = true;\nexpect(inputCheckboxIndeterminate).toBePartiallyChecked();\n```\n\n<hr />\n\n### `toHaveErrorMessage`\n\n```typescript\ntoHaveErrorMessage(text: string | RegExp)\n```\n\nThis allows you to check whether the given element has an\n[ARIA error message](https://www.w3.org/TR/wai-aria/#aria-errormessage) or not.\n\nUse the `aria-errormessage` attribute to reference another element that contains\ncustom error message text. Multiple ids is **NOT** allowed. Authors MUST use\n`aria-invalid` in conjunction with `aria-errormessage`. Learn more from\n[`aria-errormessage` spec](https://www.w3.org/TR/wai-aria/#aria-errormessage).\n\nWhitespace is normalized.\n\nWhen a `string` argument is passed through, it will perform a whole\ncase-sensitive match to the error message text.\n\nTo perform a case-insensitive match, you can use a `RegExp` with the `/i`\nmodifier.\n\nTo perform a partial match, you can pass a `RegExp` or use\n`jasmine.stringContaining(\"partial string\")`.\n\n#### Examples\n\n```html\n<label for=\"startTime\"> Please enter a start time for the meeting: </label>\n<input id=\"startTime\" type=\"text\" aria-errormessage=\"msgID\" aria-invalid=\"true\" value=\"11:30 PM\" />\n<span id=\"msgID\" aria-live=\"assertive\" style=\"visibility:visible\">\n\tInvalid time: the time must be between 9:00 AM and 5:00 PM\n</span>\n```\n\n```javascript\nconst timeInput = getByLabel('startTime');\n\nexpect(timeInput).toHaveErrorMessage('Invalid time: the time must be between 9:00 AM and 5:00 PM');\nexpect(timeInput).toHaveErrorMessage(/invalid time/i); // to partially match\nexpect(timeInput).toHaveErrorMessage(jasmine.stringContaining('Invalid time')); // to partially match\nexpect(timeInput).not.toHaveErrorMessage('Pikachu!');\n```\n\n<hr />\n\n### `toHaveDescription`\n\n```typescript\ntoHaveDescription(text: string | RegExp)\n```\n\nThis allows you to check whether the given element has a description or not.\n\nAn element gets its description via the\n[`aria-describedby` attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).\nSet this to the `id` of one or more other elements. These elements may be nested\ninside, be outside, or a sibling of the passed in element.\n\nWhitespace is normalized. Using multiple ids will\n[join the referenced elements’ text content separated by a space](https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description).\n\nWhen a `string` argument is passed through, it will perform a whole\ncase-sensitive match to the description text.\n\nTo perform a case-insensitive match, you can use a `RegExp` with the `/i`\nmodifier.\n\nTo perform a partial match, you can pass a `RegExp`.\n\n#### Examples\n\n```html\n<button aria-label=\"Close\" aria-describedby=\"description-close\">X</button>\n<div id=\"description-close\">Closing will discard any changes</div>\n\n<button>Delete</button>\n```\n\n```javascript\nconst closeButton = getByRole('button', { name: 'Close' });\n\nexpect(closeButton).toHaveDescription('Closing will discard any changes');\nexpect(closeButton).toHaveDescription(/will discard/); // to partially match\nexpect(closeButton).toHaveDescription(/^closing/i); // to use case-insensitive match\nexpect(closeButton).not.toHaveDescription('Other description');\n\nconst deleteButton = getByRole('button', { name: 'Delete' });\nexpect(deleteButton).not.toHaveDescription();\nexpect(deleteButton).toHaveDescription(''); // Missing or empty description always becomes a blank string\n```\n\n## Inspiration\n\nThis library was heavily inspired by [testing-library][testing-library] being [jest-dom][jest-dom] a part of its ecosystem, and [Kent C. Dodds'][kentcdodds] guiding principles.\n\nThe intention is to make these matchers available to developers using Jasmine instead of Jest.\n\n## Other Solutions\n\nI'm not aware of any, if you are please do make a PR and add it here!\n\nFor extending Jasmine's matchers outside the realm of DOM testing, [Jasmine-Matchers](https://github.com/JamieMason/Jasmine-Matchers) is an option.\n\n## Guiding Principles\n\n> [The more your tests resemble the way your software is used, the more confidence they can give you][guiding-principle]\n\n## Contributors\n\nThanks goes to these people ([emoji key][emojis])\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\"><a href=\"https://kentcdodds.com\"><img src=\"https://avatars.githubusercontent.com/u/1500684?v=3?s=100\" width=\"100px;\" alt=\"Kent C. Dodds\"/><br /><sub><b>Kent C. Dodds</b></sub></a><br /><a href=\"#infra-kentcdodds\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">🚇</a></td>\n      <td align=\"center\"><a href=\"https://github.com/brrianalexis\"><img src=\"https://avatars2.githubusercontent.com/u/51463930?v=4?s=100\" width=\"100px;\" alt=\"Brian Alexis\"/><br /><sub><b>Brian Alexis</b></sub></a><br /><a href=\"#ideas-brrianalexis\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/testing-library/jasmine-dom/commits?author=brrianalexis\" title=\"Code\">💻</a> <a href=\"https://github.com/testing-library/jasmine-dom/commits?author=brrianalexis\" title=\"Documentation\">📖</a> <a href=\"https://github.com/testing-library/jasmine-dom/commits?author=brrianalexis\" title=\"Tests\">⚠️</a></td>\n      <td align=\"center\"><a href=\"https://github.com/IanGrainger\"><img src=\"https://avatars0.githubusercontent.com/u/559336?v=4?s=100\" width=\"100px;\" alt=\"IanGrainger\"/><br /><sub><b>IanGrainger</b></sub></a><br /><a href=\"https://github.com/testing-library/jasmine-dom/commits?author=IanGrainger\" title=\"Code\">💻</a></td>\n      <td align=\"center\"><a href=\"https://michaeldeboey.be\"><img src=\"https://avatars.githubusercontent.com/u/6643991?v=4?s=100\" width=\"100px;\" alt=\"Michaël De Boey\"/><br /><sub><b>Michaël De Boey</b></sub></a><br /><a href=\"#infra-MichaelDeBoey\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">🚇</a></td>\n      <td align=\"center\"><a href=\"https://nickmccurdy.com/\"><img src=\"https://avatars.githubusercontent.com/u/927220?v=4?s=100\" width=\"100px;\" alt=\"Nick McCurdy\"/><br /><sub><b>Nick McCurdy</b></sub></a><br /><a href=\"#infra-nickmccurdy\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">🚇</a></td>\n      <td align=\"center\"><a href=\"http://www.orilivni.com\"><img src=\"https://avatars.githubusercontent.com/u/2685242?v=4?s=100\" width=\"100px;\" alt=\"Ori Livni\"/><br /><sub><b>Ori Livni</b></sub></a><br /><a href=\"https://github.com/testing-library/jasmine-dom/commits?author=oriSomething\" title=\"Code\">💻</a> <a href=\"https://github.com/testing-library/jasmine-dom/commits?author=oriSomething\" title=\"Tests\">⚠️</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors][all-contributors] specification.\nContributions of any kind are welcome!\n\n## LICENSE\n\nMIT\n\n[jasmine]: https://jasmine.github.io/\n[jest-dom]: https://testing-library.com/docs/ecosystem-jest-dom\n[kentcdodds]: https://kentcdodds.com/\n[npm]: https://www.npmjs.com/\n[node]: https://nodejs.org\n[testing-library]: https://testing-library.com/\n[yarn]: https://yarnpkg.com\n\n<!-- BADGES -->\n\n[build-badge]: https://img.shields.io/github/workflow/status/testing-library/jasmine-dom/validate?logo=github&style=flat-square\n[build]: https://github.com/testing-library/jasmine-dom/actions?query=workflow%3Avalidate\n[coverage-badge]: https://codecov.io/gh/testing-library/jasmine-dom/branch/main/graph/badge.svg\n[coverage]: https://codecov.io/gh/testing-library/jasmine-dom\n[version-badge]: https://img.shields.io/npm/v/@testing-library/jasmine-dom?style=flat-square\n[semantic-release-badge]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n[semantic-release]: https://github.com/semantic-release/semantic-release\n[package]: https://www.npmjs.com/package/@testing-library/jasmine-dom\n[downloads-badge]: https://img.shields.io/npm/dm/@testing-library/jasmine-dom?style=flat-square\n[npmtrends]: http://www.npmtrends.com/@testing-library/jasmine-dom\n[license-badge]: https://img.shields.io/npm/l/@testing-library/jasmine-dom?style=flat-square\n[license]: https://github.com/testing-library/jasmine-dom/blob/main/LICENSE\n[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs]: http://makeapullrequest.com\n[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square\n[coc]: https://github.com/testing-library/jasmine-dom/blob/main/other/CODE_OF_CONDUCT.md\n[github-watch-badge]: https://img.shields.io/github/watchers/testing-library/jasmine-dom?style=social\n[github-watch]: https://github.com/testing-library/jasmine-dom/watchers\n[github-star-badge]: https://img.shields.io/github/stars/testing-library/jasmine-dom?style=social\n[github-star]: https://github.com/testing-library/jasmine-dom/stargazers\n[twitter]: https://twitter.com/intent/tweet?text=Check%20out%20jasmine-dom%20by%20%40brrianalexis%20https%3A%2F%2Fgithub.com%2Ftesting-library%2Fjasmine-dom%20%F0%9F%91%8D\n[twitter-badge]: https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Fgithub.com%2Ftesting-library%2Fjasmine-dom\n[emojis]: https://allcontributors.org/docs/en/emoji-key\n[all-contributors]: https://github.com/all-contributors/all-contributors\n[all-contributors-badge]: https://img.shields.io/badge/all_contributors-5-orange.svg?style=flat-square\n[guiding-principle]: https://testing-library.com/docs/guiding-principles\n[discord-badge]: https://img.shields.io/discord/723559267868737556.svg?color=7389D8&labelColor=6A7EC2&logo=discord&logoColor=ffffff&style=flat-square\n[discord]: https://discord.gg/testing-library\n","readmeFilename":"README.md"}