{"name":"uvu","version":"0.0.1","module":"dist/index.mjs","main":"dist/index.js","types":"index.d.ts","modes":{"assert":"src/assert.js","default":"src/index.js"},"scripts":{"build":"bundt"},"dependencies":{"dequal":"^1.0.0","kleur":"^3.0.0","sade":"^1.7.3","totalist":"^1.0.1"},"devDependencies":{"bundt":"1.0.0"},"gitHead":"315150db0f6c538de05018c119d35218c91e1e76","_id":"uvu@0.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"dist":{"integrity":"sha512-0O94seXbKzm/LMPH60iyLm+MJfYiEoyNBJ58nCTKQvz6goJ3lPHkOX57L5hpertpt8TvsRMUm5+UwcMch23ijg==","shasum":"b36d370d3e566271b504dcef3831c36b231c879e","tarball":"http://registry-npm.ywwl.com/uvu/download/uvu-0.0.1.tgz","fileCount":8,"unpackedSize":13982,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuv1uCRA9TVsSAnZWagAAMdgQAJE8FMQ/1Ruw34TrtZMc\nDH0yWohs7oj6Ir8dUnFz+Ieclo43YswmO/Bv2bANbBp5WOGlWy8tt2kOmYq6\nGJ7UuIa2ujnExfEauoMriRP3+wV1oNbTuUAOfE/DL20Q9aoVnIP8l0yttSK+\n00tsoMRBoGxK4sj1gAN78LsKq/wCNO8ZtMWCj/+n778EA6ibp9iXtE69H1b/\nqWsShnnwixoiriW7Sran/hASVBBQI/rCtlXBFeApXWI/M8DduhiWfKXmkxO5\nvuSv+16nIK7AcPVE57UUtinauf38aIUcn8cH9lDRUa5U4jBMfBsDlm5Ss3un\nq/JEYYpOwGQWug6WJzykA3PmkUEgxp6k8Ud9P0QxZDzfLjPNVYi0xDY07B4L\nTJmT1eaUslBW5GUW4n63Cl4ogsNptN3jWgMLYBRaCNwxBC+jTfC3gWZtkjWX\ndRBFDNgPSgKlez+4BqZ4LSpbhfrRbTS/1Dmu54d1Cacq4asyCKdx5Sh++uNA\nsnm4JIpSfUp4ThKeU1Q4EoyX9q8PXyeq0uvRJWO1Iw3KSwg/QqfXOLtrk1Ba\n5YxQVDO0ANfji99p9zhqD5gjRMrGHi9JN4waL+kkZnSvJNQWIsx3yagXlyMz\nRT3+rgTFjNvK5B51cwQscMm+qw9NhUIeE+IIDy0HXc0xdDssdlhXhSSTixRV\nSQ4g\r\n=clUw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEYZnMvFrAP5ZE7rDwCZuwhtV+MG5/VbkXlBaMNXZ1jwIgPYmaaMxxfg2EoVLcdrAbZSVUx6vo5T+LwoSTDea4kr4="}],"size":3865,"noattachment":false,"key":"/uvu/-/uvu-0.0.1.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uvu_0.0.1_1589312878012_0.5152763154332829"},"_hasShrinkwrap":false,"readme":"<div align=\"center\">\n  <img src=\"shots/uvu.jpg\" alt=\"uvu\" height=\"120\" />\n</div>\n\n<div align=\"center\">\n  <a href=\"https://npmjs.org/package/uvu\">\n    <img src=\"https://badgen.now.sh/npm/v/uvu\" alt=\"version\" />\n  </a>\n  <a href=\"https://github.com/lukeed/uvu/actions\">\n    <img src=\"https://github.com/lukeed/uvu/workflows/CI/badge.svg\" alt=\"CI\" />\n  </a>\n  <a href=\"https://npmjs.org/package/uvu\">\n    <img src=\"https://badgen.now.sh/npm/dm/uvu\" alt=\"downloads\" />\n  </a>\n  <a href=\"https://packagephobia.now.sh/result?p=uvu\">\n    <img src=\"https://packagephobia.now.sh/badge?p=uvu\" alt=\"install size\" />\n  </a>\n</div>\n\n<div align=\"center\">\n  <b>uvu</b> is an extremely fast and lightweight test runner for Node.js and the browser<br>\n  <b>U</b>ltimate <b>V</b>elocity, <b>U</b>nleashed<br><br>\n  <img width=\"380\" alt=\"example with suites\" src=\"shots/suites.gif\"/>\n</div>\n\n\n## Features\n\n* Super [lightweight](https://npm.anvaka.com/#/view/2d/uvu)\n* Extremely [performant](#benchmarks)\n* Individually executable test files\n* Supports `async`/`await` tests\n* Supports native ES Modules\n* Browser-Compatible\n* Familiar API\n\n\n## Install\n\n```\n$ npm install --save-dev uvu\n```\n\n\n## Usage\n\n> Check out [`/examples`](/examples) for a list of working demos!\n\n```js\n// tests/demo.js\nimport { test } from 'uvu';\nimport * as assert from 'uvu/assert';\n\ntest('Math.sqrt()', () => {\n  assert.is(Math.sqrt(4), 2);\n  assert.is(Math.sqrt(144), 12);\n  assert.is(Math.sqrt(2), Math.SQRT2);\n});\n\ntest('JSON', () => {\n  const input = {\n    foo: 'hello',\n    bar: 'world'\n  };\n\n  const output = JSON.stringify(input);\n\n  assert.snapshot(output, `{\"foo\":\"hello\",\"bar\":\"world\"}`);\n  assert.equal(JSON.parse(output), input, 'matches original');\n});\n\ntest.run();\n```\n\nThen execute this test file:\n\n```sh\n# via `uvu` cli, for all `/tests/**` files\n$ uvu -r esm tests\n\n# via `node` directly, for file isolation\n$ node -r esm tests/demo.js\n```\n\n> **Note:** The `-r esm` is for legacy Node.js versions. [Learn More](/docs/esm.md)\n\n> [View the `uvu` CLI documentation](/docs/cli.md)\n\n\n## Assertions\n\nThe [`uvu/assert`](/docs/api.assert.md) module is _completely_ optional.\n\nIn fact, you may use any assertion library, including Node's native [`assert`](https://nodejs.org/api/assert.html) module! This works because `uvu` relies on thrown Errors to detect failures. Implicitly, this also means that any uncaught exceptions and/or unhandled `Promise` rejections will result in a failure, which is what you want!\n\n\n## API\n\n### Module: `uvu`\n\n> [View `uvu` API documentation](/docs/api.uvu.md)\n\nThe main entry from which you will import the `test` or `suite` methods.\n\n### Module: `uvu/assert`\n\n> [View `uvu/assert` API documentation](/docs/api.assert.md)\n\nA collection of assertion methods to use within your tests. Please note that:\n\n* these are browser compatible\n* these are _completely_ optional\n\n\n## Benchmarks\n\n> via the [`/bench`](/bench) directory with Node v10.21.0\n\nBelow you'll find each test runner with two timing values:\n\n* the `took ___` value is the total process execution time – from startup to termination\n* the parenthesis value (`(___)`) is the self-reported execution time, if known\n\nEach test runner's `stdout` is printed to the console to verify all assertions pass.<br>Said output is excluded below for brevity.\n\n```\n~> \"ava\"   took   594ms  (  ???  )\n~> \"jest\"  took   962ms  (356  ms)\n~> \"mocha\" took   209ms  (  4  ms)\n~> \"tape\"  took   122ms  (  ???  )\n~> \"uvu\"   took    72ms  (  1.3ms)\n```\n\n\n## License\n\nMIT © [Luke Edwards](https://lukeed.com)\n","publish_time":1589312878144,"_cnpm_publish_time":1589312878144,"dist-tags":{"latest":"0.5.6","next":"0.6.0-next.1"}}