{"bin":{"postcss-tape":"index.js"},"bugs":{"url":"https://github.com/jonathantneal/postcss-tape/issues"},"dist":{"shasum":"1248790df5dc7ccbd11a7fb35ae9cf1712d84dd1","tarball":"https://registry.npmjs.org/postcss-tape/-/postcss-tape-3.0.0.tgz","fileCount":5,"integrity":"sha512-HdIfrNm/ru7KNMFuqh6f27bO6PB6JiNG4t5qqhkU/QLgN1BpW0gUfPcuvwVvZa2bhiHfpAyJGFDLGwg8NwRp3Q==","signatures":[{"sig":"MEYCIQCQqj3ZS3b2rmvtdRJxocQqaJDrk6fGT/sZIvutE5/2XgIhAJqV/UYIT46tXwtdp8Zxl/GdJF833nAkpkkN8oipv9yf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20007,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb+hurCRA9TVsSAnZWagAARj0P/jUC7rFt9Ujj2h7f454Q\njtXrFJ4DWnSIyBkSMMLIae+Fcr5wQnvZMLYlZP4BBDAaPc7jhddWJeGxJ9Zr\nkAgHLiq8aq4wiJ/aB2R50Lh6bSjrmwBIqjcr6RR8Po2M/njPftpnXl9nAiTe\nCzrSN3IBsvuW7YxDJqr6AQ+6ma2mnQHMjsL13xLjqZs32IC1brplfQeb1wSk\nRc9lD0Weq8eHApkkmUpIKNwzzUCLJJE7W8sSG/ro/7i0E5HwAYDQoPVZ3+SB\n28CbzECqDt0ETleMLgu1jSEcIeYOkXY0HSWzqrPXEVO9lh3IgQ1nHZxlPdU4\nsEk3oo53BT6FiY6J+KScTo5ZksJ20GYjvFUdvXaUr5X0AkI74f8PMOjC54sY\n20l/m99hmTur4cnfMP4BIh8aU7SW+CjujD99YRYnvO88xrTuNs1Fvez4Ntt/\npLoaFUueNYkfT11oBpbrSiqk/ug2PbvN6aM3PoiJmgPgunck9dW3D9ulNwFy\nKR8k/s5wj2nTiTeOAGezKz9lybD37oYw3BdVL2FYCrCx1gG32LPpwv7WhcAN\n9TYkzXqaGPOol1aZ/mUZ52TfmUFLUskABbnW7MOtxhw9dcQe5XMfMFRtLMAQ\n0bNVxK47IiJnIoAyPMWPezi8ls56b+jkyrYNOotWWdGZ6ci9lu3m4VqQGT6s\nusWF\r\n=SNf9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","name":"postcss-tape","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"readme":"# PostCSS Tape [<img src=\"http://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS\" width=\"90\" height=\"90\" align=\"right\">][PostCSS]\n\n[![NPM Version][npm-img]][npm-url]\n[![Build Status][cli-img]][cli-url]\n[![Gitter Chat][git-img]][git-url]\n\n[PostCSS Tape] lets you quickly test [PostCSS] plugins.\n\n1. Install this dependency to your project:\n   ```sh\n   npm install postcss-tape --save-dev\n   ```\n\n2. Add the `postcss-tape` task to your `package.json`:\n   ```json\n   {\n      \"scripts\": {\n        \"test\": \"postcss-tape\"\n      }\n   }\n   ```\n\n3. Add tests to your `.tape.js` file:\n   ```js\n   module.exports = {\n     'postcss-my-plugin': {\n       'basic': {\n         message: 'supports basic usage'\n       }\n     }\n   };\n   ```\n\nThat’s it! Empty tests will be auto-generated.\n\n```sh\nnpm test\n```\n\n## Options\n\nOptions may be passed through `package.json` using `postcssConfig`:\n\n```json\n{\n  \"postcssConfig\": {\n    \"plugin\": \"path/to/plugin.js\",\n    \"config\": \"path/to/.tape.js\",\n    \"fixtures\": \"path/to/cssdir\"\n  }\n}\n```\n\nOptions may be passed through arguments:\n\n```sh\npostcss-tape --plugin=path/to/plugin.js --config=path/to/.tape.js\n```\n\n## Test Options\n\n### message\n\nThe message provided to the console to identify the test being run.\n\n```js\n{\n  'some-test': {\n    message: 'supports some test usage'\n  }\n}\n```\n\n### options\n\nThe options passed into the PostCSS plugin for the test.\n\n```js\n{\n  'some-test': {\n    options: {\n      someOption: true,\n      anotherOption: 5,\n      etc: 'etc'\n    }\n  }\n}\n```\n\n### processOptions\n\nThe process options passed into PostCSS for the test. Read the\n[PostCSS documentation](http://api.postcss.org/global.html#processOptions) for\nmore details.\n\n```js\n{\n  'some-test': {\n    processOptions: {\n      map: {\n        inline: true,\n        sourcesContent: true\n      }\n    }\n  }\n}\n```\n\n### warning\n\nThe number of warnings expected to be generated by the test.\n\n```js\n{\n  'some-test': {\n    warnings: 3\n  }\n}\n```\n\n### error\n\nAn identifying feature of an error expected to be thrown by the test.\n\n```js\n{\n  'some-test': {\n    error: {\n      message: 'You should not have done that'\n    }\n  }\n}\n```\n\nIn that example, the error expects a field of `message` to be the string\n`You should not have done that`. In order that errors can be inspecific,\nregular expressions may also be used, so that something like\n`message: /^You should not have done/` would also match\n`You should not have done this`.\n\n### source\n\nThe location of the source CSS file, relative to the `fixtures` directory. This\nfile is passed through the PostCSS plugin.\n\n```js\n{\n  'some-test': {\n    source: 'alterate-source.css'\n  }\n}\n```\n\nIn that example, a `some-test` field would automatically populate the\n`source` as `some-test.css` unless it was overridden. In order that multiple\ntests may use the same source file, a `some-test:modifier` field would still\npopulate the `source` as `some-test.css`.\n\n### expect\n\nThe location of the expected CSS file, relative to the `fixtures` directory.\nThis file is represents the expected CSS result of `source` after being passed\nthrough the PostCSS plugin.\n\n```js\n{\n  'some-test': {\n    expect: 'alterate-expect.css'\n  }\n}\n```\n\nIn that example, a `some-test` field would automatically populate the\n`expect` as `some-test.expect.css` unless it was overridden. In order that\nmultiple tests may use the same source file, a `some-test:modifier` field would\nstill populate the `source` as `some-test.css`, but alter the `expect` to be\n`some-test.modifier.expect.css`.\n\n### result\n\nThe location of the resulting CSS file, relative to the `fixtures` directory.\nThis file is the CSS result of `source` after being passed through the PostCSS\nplugin.\n\n```js\n{\n  'some-test': {\n    result: 'alterate-result.css'\n  }\n}\n```\n\nIn that example, a `some-test` field would automatically populate the\n`result` as `some-test.result.css` unless it was overridden. In order that\nmultiple tests may use the same source file, a `some-test:modifier` field would\nstill populate the `source` as `some-test.css`, but alter the `result` to be\n`some-test.modifier.result.css`.\n\n### before\n\nA function to be run before the particular test. This is helpful for generating\nvariables, content, or files that will be used by the plugin.\n\n```js\n{\n  'some-test': {\n    before: () => {\n      /* do something before the plugin runs */\n    }\n  }\n}\n```\n\n### after\n\nA function to be run after the particular test. This is helpful for cleaning up\nvariables, content, or files that were used by the plugin.\n\n```js\n{\n  'some-test': {\n    after: () => {\n      /* do something after the plugin runs */\n    }\n  }\n}\n```\n\n### plugin\n\nA plugin or array of plugins that will specifying alternative plugin\n\n```js\n{\n  'some-test': {\n    plugin: () => require('postcss')(\n      require('some-plugin-that-runs-before'),\n      require('.'),\n      require('some-plugin-that-runs-after')\n    )\n  }\n}\n```\n\n[npm-img]: https://img.shields.io/npm/v/postcss-tape.svg\n[npm-url]: https://www.npmjs.com/package/postcss-tape\n[cli-img]: https://img.shields.io/travis/jonathantneal/postcss-tape.svg\n[cli-url]: https://travis-ci.org/jonathantneal/postcss-tape\n[git-img]: https://img.shields.io/badge/chat-gitter-blue.svg\n[git-url]: https://gitter.im/postcss/postcss\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Tape]: https://github.com/jonathantneal/postcss-tape\n","engines":{"node":">=6.0.0"},"gitHead":"ac829f1ef43c272e2323a4be673251f5455d71f9","license":"CC0-1.0","scripts":{"test":"npm run test:js && npm run test:tape","build":"rollup -c --silent","pretest":"npm run build","test:js":"eslint src/*.js src/lib/*.js --cache --ignore-pattern .gitignore","test:tape":"node . --plugin=test/plugin.js --config=test","prepublish":"npm test"},"_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"homepage":"https://github.com/jonathantneal/postcss-tape#readme","keywords":["postcss","css","postcss-plugin","testing","tests","tools","tape"],"repository":{"url":"git+https://github.com/jonathantneal/postcss-tape.git","type":"git"},"_npmVersion":"6.4.1","description":"Quickly test PostCSS plugins","directories":{},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_nodeVersion":"11.1.0","eslintConfig":{"rules":{"complexity":[1,23]},"parser":"babel-eslint","extends":"dev"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^5.9.0","rollup":"^0.67.3","postcss":"^7.0.6","@babel/core":"^7.1.6","babel-eslint":"^10.0.1","@babel/preset-env":"^7.1.6","eslint-config-dev":"2.0.0","rollup-plugin-babel":"^4.0.3","rollup-plugin-terser":"^3.0.0","@babel/plugin-syntax-dynamic-import":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/postcss-tape_3.0.0_1543117738651_0.522386980957728","host":"s3://npm-registry-packages"},"_id":"postcss-tape@3.0.0","version":"3.0.0"}