{"library":"mocha-stylus-compiler","title":"mocha-stylus-compiler","description":"A Stylus compiler plugin for Mocha that allows requiring .styl files in tests, compiling them to CSS but ignoring the output (compiles to null). Version 1.0.1 is the latest and only stable release. It is a minimal tool for integrating Stylus preprocessing into Mocha test runs. Unlike alternative approaches (like using stylus directly or other Mocha compilers), this package specifically registers .styl files with Mocha's --compilers option, preventing parse errors when requiring Stylus files in tests. No updates since initial release; considered stable but unmaintained.","language":"javascript","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["npm install mocha-stylus-compiler"],"cli":null},"imports":["require('mocha-stylus-compiler')"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Install mocha and mocha-stylus-compiler\n// npm install --save-dev mocha mocha-stylus-compiler\n\n// Create a test file test/example.test.js\nconst assert = require('assert');\nconst styles = require('./styles.styl'); // This will compile to an empty object\n\ndescribe('Stylus', function() {\n  it('should compile without error', function() {\n    assert.equal(typeof styles, 'object');\n  });\n});\n\n// Run: npx mocha --compilers styl:mocha-stylus-compiler","lang":"javascript","description":"Shows how to set up and run Mocha tests that require .styl files using the Stylus compiler.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}