{"library":"mocha-traceur","title":"mocha-traceur","description":"A Mocha plugin that compiles JavaScript files through the Traceur transpiler, enabling ES6 (ES2015) features for test files. Version 2.1.0 is the current stable release, depending on 'traceur-runner' for stack traces and optional dependency compilation. It operates via Mocha's --compilers flag. Key differentiator vs alternatives like babel-register: focused solely on Traceur, with no dependency compilation by default, making it lightweight but restrictive. The package is maintained infrequently; latest release 2.1.0 is several years old. Does not bundle Traceur itself, requiring a separate install.","language":"javascript","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["npm install mocha-traceur"],"cli":null},"imports":["mocha --compilers js:mocha-traceur my_test_dir/*.js"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Install dependencies\nnpm install --save-dev mocha mocha-traceur traceur\n\n// Create a test file 'test/test.js' with ES6 features\nimport { strictEqual } from 'assert';\n\nconst greet = (name) => `Hello, ${name}!`;\ndescribe('greet', () => {\n  it('should greet a person', () => {\n    strictEqual(greet('World'), 'Hello, World!');\n  });\n});\n\n// Run tests from command line\nmocha --compilers js:mocha-traceur test/*.js","lang":"javascript","description":"Setup and run Mocha tests with Traceur transpilation via --compilers flag, demonstrating ES6 arrow functions and template literals.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}