{"name":"@tapjs/asserts","version":"4.2.0","keywords":["tapjs plugin"],"author":{"url":"https://blog.izs.me","name":"Isaac Z. Schlueter","email":"i@izs.me"},"license":"BlueOak-1.0.0","_id":"@tapjs/asserts@4.2.0","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"isaacs","email":"i@izs.me"}],"homepage":"https://github.com/tapjs/tapjs/src/asserts#readme","bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"tap":{"typecheck":false,"coverage-map":"./map.js"},"dist":{"shasum":"188275e5c6326dcf7b00b223e49945aab1071d0e","tarball":"http://registry-npm.ywwl.com/@tapjs/asserts/download/@tapjs/asserts-4.2.0.tgz","fileCount":21,"integrity":"sha512-iKDETAks00D6MCgejmuFAYf+tE8vrTZbM6S0Dw5IyAaRcQmuy5FdjnCqmnWElRA41F6RZsLWCc44RDAzy9Cw+g==","signatures":[{"sig":"MEUCIQDE1AZIVQ6NUoDJ4qkzz5/x6hYQrLtmmTo4hLRYlZsSRgIgIa0gspicomKRZ8Dhk4MIx5rj6Qb2uy3E/0pV7Fz3fEw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":239583,"size":34642,"noattachment":false,"key":"/@tapjs/asserts/-/@tapjs/asserts-4.2.0.tgz"},"main":"./dist/commonjs/index.js","tshy":{"main":true,"exports":{".":"./src/index.ts","./package.json":"./package.json"}},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","engines":{"node":"20 || >=22"},"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/isaacs"},"gitHead":"2199ab24bdf778a6a8a9ae1341ebb47ef7fda64a","scripts":{"snap":"tap","test":"tap","format":"prettier --write . --log-level warn --ignore-path ../../.prettierignore --cache","prepare":"tshy","presnap":"npm run prepare","pretest":"npm run prepare","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"repository":{"url":"git+ssh://git@github.com/tapjs/tapjs.git","path":"src/asserts","type":"git"},"_npmVersion":"11.6.3","description":"Tap plugin that adds a heaping pile of assertion methods. Pretty much all of the \"test\" methods other than `t.pass`, `t.fail`, and [snapshot methods](https://tapjs.github.io/tapjs/modules/_tapjs_snapshot.html) come from this plugin.","directories":{},"_nodeVersion":"24.4.1","dependencies":{"tcompare":"9.2.0","@tapjs/stack":"4.2.0","trivial-deferred":"^2.0.0","is-actual-promise":"^1.0.1"},"_hasShrinkwrap":false,"peerDependencies":{"@tapjs/core":"4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/asserts_4.2.0_1764109785182_0.8340365146426632","host":"s3://npm-registry-packages-npm-production"},"readme":"# `@tapjs/asserts`\n\nTap plugin that adds a heaping pile of assertion methods. Pretty\nmuch all of the \"test\" methods other than `t.pass`, `t.fail`, and\n[snapshot\nmethods](https://tapjs.github.io/tapjs/modules/_tapjs_snapshot.html)\ncome from this plugin.\n\n## USAGE\n\nThis plugin is installed with tap by default. If you had\npreviously removed it, you can `tap plugin add @tapjs/asserts` to\nbring it back.\n\n### `compareOptions`\n\nThis plugin adds the `compareOptions` option to the set of fields\nthat can be passed to child tests. You can also set\n`t.compareOptions` after the fact.\n\n`compareOptions` lets you pass options to\n[tcompare](https://tapjs.github.io/tapjs/modules/tcompare.html)\nto specify the formatting style, diff context lines, and so on.\n\nIt can contain the following fields:\n\n- `sort` - boolean, sort items alphabetically by key.\n- `bufferChunkSize` - number of bytes to show on each line when\n  printing buffers, default `32`\n- `includeEnumerable` - boolean, include any and all enumerable\n  properties, including those inherited on the prototype chain.\n  By default, only `own` properties are shown.\n- `includeGetters` - boolean, include getter properties.\n- `diffContext` - how many lines of context to print around\n  changes in diffs, default `10`. Note that the test reporter\n  might use more or less than this value when displaying pretty\n  colored diffs.\n\n### Assertion Methods\n\nAll of the assertion methods are documented [on the `Assertions`\nclass](https://tapjs.github.io/tapjs/classes/_tapjs_asserts.index.Assertions.html).\nWhen this plugin is loaded, these are all present on `Test`\nobjects.\n","publish_time":1764109785372,"_cnpm_publish_time":1764109785372,"dist-tags":{"latest":"4.3.13","pre":"1.0.0"}}