{"_id":"@emble/seed-barista","_rev":"3-a2df5592232e6f95adf4ff17095511aa","name":"@emble/seed-barista","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@emble/seed-barista","version":"1.0.0","keywords":["barista","bem","css","design","functional","helper","itcss","modular","mocha","oocss","performance","seed","scss","test","testing"],"license":"MIT","_id":"@emble/seed-barista@1.0.0","maintainers":[{"name":"voide","email":"jordifuite@hotmail.com"}],"homepage":"https://github.com/helpscout/seed-barista#readme","bugs":{"url":"https://github.com/helpscout/seed-barista/issues"},"nyc":{"exclude":["lib/vendor/**/*.js","test/**/*.js"]},"dist":{"shasum":"5971ea5406f6fb48779f54203ec24641ee67f9ab","tarball":"https://registry.npmjs.org/@emble/seed-barista/-/seed-barista-1.0.0.tgz","fileCount":45,"integrity":"sha512-ur1AFjTCXs0sPL47as4aw/wQGfATI0dVSpNPul9D6MZeyIMvYaJU5DKwvEqXiRxFaBEEF9nKn305+FKch63I3A==","signatures":[{"sig":"MEQCIBLkzjlZGV+Vbno0Su80e6e9vlRKSH7EitFLq1Erz43fAiBEjpxpFSXIZLTUxYCD0bDSMJWQ3Ri68WJylzdh5dWYug==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57857,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3OOrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpibQ/+NI0rZ0m3ljDEmFrDOFdVhiqzn7DvMsQD+8jZeNvCEAsoMGq2\r\nUFi3hviZRgrzNZStXg2TT5Ou8RDX7kp3C1DpKCjgaPtCXaTtNdi7QYbkyvbo\r\nAq5YrpPT50UU73x5GlmRIhBGSfh+A8D5Dg2pIKI7hgLFo8p3ZyvxkHpz+MpU\r\nXSlUnomFPjUH1rOLFs0RW4QZN7aCLuOffdZR/9dAtP8WkkiR5SFAM4ss+sBK\r\nGqZYw4b+k704mmwfljjdUahI502cYVSLIGsaIi6pFibGHwP6AZQj+Or+3MEa\r\n7uo9oPdrJQApBnBqAanvzIVED5Ed6QFS4z5Z457YB2WDPeWjc4aRzmdbLqQE\r\nywbFr+gTnMq8tTefZRGK/KAnS9guvUizq8xfTgQoiwm7LoFWsCfMXaBFQ1YY\r\n7x+NcgJULajEAY4NPgc4m41YuX6oGS/knHSKTq+SHsMyj/+zptV65atE9qDV\r\nxu4JXn1skTEFqag3rPVWpChORkV+eNAdQMwvQHTdOfHUN2xmz2HHQPTde5YE\r\nQoDHUwNZvcA8s3cigCwFmIQX0w/7KEe/DqoDqEDY7kGMJksvfZqMRdOeXu+t\r\nQt1iznLTbyNzlWuzxoZ/JOaXoRYIv0gW/uurU6W8KbrpPEveg26hURO/FxFO\r\n8M0+lFePs0cWCEEIAfdmrtc3YmtDHIWuf8s=\r\n=gvPP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","babel":{"env":{"test":{"plugins":["istanbul"]}},"presets":["es2015"]},"authors":["ItsJonQ <itsjonq@gmail.com>"],"gitHead":"1b0e9eef5f3f02957fc5e0eb06ceba156ae18d89","scripts":{"dev":"npm run test:watch","lint":"jshint index.js lib/","test":"npm run test:unit && npm run test:integration && npm run test:acceptance && npm run test:e2e","coverage":"nyc report --reporter=text-lcov | coveralls","test:e2e":"npm run test:e2e:breakpoints && npm run test:e2e:navbar","test:unit":"mocha test/setup.mocha.js --recursive test/unit/","test:watch":"mocha test/setup.mocha.js --recursive test/unit/ test/integration/ --watch --reporter dot","test:coverage":"nyc --reporter=html --reporter=text mocha test/setup.mocha.js --recursive test/unit test/integration --reporter=dot","test:acceptance":"npm run test:acceptance:common && npm run test:acceptance:es6","test:e2e:navbar":"mocha test/setup.mocha.e2e.navbar.js --recursive test/e2e/seed-navbar/test/","test:integration":"mocha test/setup.mocha.js --recursive test/integration/","test:acceptance:es6":"mocha test/setup.mocha.es6.js test/acceptance/es6.js","test:e2e:breakpoints":"mocha test/setup.mocha.e2e.breakpoints.js --recursive test/e2e/seed-breakpoints/test/","test:acceptance:common":"mocha test/acceptance/common.js"},"_npmUser":{"name":"voide","email":"jordifuite@hotmail.com"},"repository":{"url":"git+https://github.com/helpscout/seed-barista.git","type":"git"},"_npmVersion":"8.19.2","description":"Test helper for Seed CSS","directories":{},"_nodeVersion":"18.12.1","dependencies":{"sass":"^1.58.0","jsdom":"^11.11.0","jquery":"3.4.1","postcss":"^7.0.5","find-root":"^1.1.0","lodash.has":"^4.5.2","css-mq-parser":"^0.0.3","lodash.flatten":"^4.4.0","seed-harvester":"^0.1.5","sass-pathfinder":"^0.0.5"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"12.0.2","tar":"4.4.8","chai":"4.1.2","hoek":"^5.0.4","mocha":"5.2.0","sinon":"6.1.0","braces":"2.3.1","extend":"3.0.2","jshint":"^2.9.6","lodash":"4.17.15","seed-nav":"0.1.0","coveralls":"3.0.2","babel-core":"6.26.3","seed-props":"0.3.1","just-extend":"4.0.2","seed-button":"0.3.0","seed-publish":"0.2.0","seed-dropdown":"0.0.8","seed-breakpoints":"0.4.1","babel-preset-es2015":"6.24.1","mocha-lcov-reporter":"1.3.0","babel-plugin-istanbul":"4.1.4"},"_npmOperationalInternal":{"tmp":"tmp/seed-barista_1.0.0_1675420586865_0.5942285153908615","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-02-03T10:36:26.812Z","modified":"2026-01-21T13:11:17.293Z","1.0.0":"2023-02-03T10:36:27.038Z"},"bugs":{"url":"https://github.com/helpscout/seed-barista/issues"},"license":"MIT","homepage":"https://github.com/helpscout/seed-barista#readme","keywords":["barista","bem","css","design","functional","helper","itcss","modular","mocha","oocss","performance","seed","scss","test","testing"],"repository":{"url":"git+https://github.com/helpscout/seed-barista.git","type":"git"},"description":"Test helper for Seed CSS","maintainers":[{"email":"jordifuite@hotmail.com","name":"voide"},{"email":"devs@emble.nl","name":"emble_nl"},{"email":"cor.vanoostenbrugge@emble.nl","name":"emble_cor"}],"readme":"# Barista ☕️ [![Build Status](https://travis-ci.org/helpscout/seed-barista.svg?branch=master)](https://travis-ci.org/helpscout/seed-barista) [![Coverage Status](https://coveralls.io/repos/github/helpscout/seed-barista/badge.svg?branch=master)](https://coveralls.io/github/helpscout/seed-barista?branch=master) [![npm version](https://badge.fury.io/js/seed-barista.svg)](https://badge.fury.io/js/seed-barista) [![dependencies Status](https://david-dm.org/helpscout/seed-barista/status.svg)](https://david-dm.org/helpscout/seed-barista) [![Gitter](https://badges.gitter.im/join_chat.svg)](https://gitter.im/seed-css/barista)\n\n<div>\n<img src=\"https://github.com/helpscout/seed-barista/raw/master/barista.png\" width=\"200\" height=\"200\" title=\"Barista\">\n</div>\n\nBarista is a Javascript utility for (S)CSS unit testing, compatible with most major test runners and assertion libraries.\n\nSeed isn't required for Barista to work. Although, Barista does make it easier to write tests for Seed CSS.\n\nFor added convenience, we recommend trying out [seed-bistro](https://github.com/helpscout/seed-bistro).<br>\nIt comes with Barista + other libraries for CSS testing goodness 🙌\n\nThe latest versions of Barista require **Node.js v6** or newer to work (and not explode).\n\n## Install\n```\nnpm install seed-barista --save-dev\n```\n\n\n## Basic Usage\n\n### [Static](/docs/api/static.md)\n\nBelow is an example of how you can setup a [Mocha](https://mochajs.org/) test with Barista. A fast and simple way to test `.scss` output is to verify the rendered output matches against expected strings.\n\n```javascript\nvar expect = require('chai').expect;\nvar barista = require('seed-barista');\n\ndescribe('harry component styles', function() {\n  it('should render a class of wizard + harry', function() {\n    var output = barista({ file: '_wizard.scss' });\n    var rule = output.rule('.your-a-wizard.harry');\n\n    expect(rule.exists()).to.be.true;\n    expect(rule.prop('background')).to.equal('red');\n    expect(rule.prop('color')).to.equal('yellow');\n  });\n});\n```\n\nCheck out the full [API documentation](/docs/api/static.md)\n\n\n\n### [Mounted](/docs/api/mounted.md)\n\nMounted based testing creates a [virtual DOM](https://github.com/tmpvar/jsdom), allowing you to write assertions against DOM elements. Barista's Mounted API uses jQuery to retrieve computed CSS styles.\n\n```javascript\nvar expect = require('chai').expect;\nvar barista = require('seed-barista');\n\ndescribe('harry component styles', function() {\n  it('should render a class of wizard + harry', function() {\n    var output = barista({ file: '_wizard.scss' }).mount();\n    var rule = output.find('.your-a-wizard.harry');\n\n    expect(rule.prop('background')).to.equal('red');\n    expect(rule.prop('color')).to.equal('yellow');\n  });\n});\n```\n\nCheck out the full [API documentation](/docs/api/mounted.md)\n\n\n\n## Examples\n\n**Check out an [example test](https://github.com/helpscout/seed-barista/blob/master/test/integration/examples/button.js)**\n","readmeFilename":"README.md"}