Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mock-handlebars-loader

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mock-handlebars-loader

Mock handlebars loader for testing

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

mock-handlebars-loader

Mock handlebars loader for testing

Installation

npm i -D mock-handlebars-loader or npm install --save-dev mock-handlebars-loader

How to use

If you use extension .handlebars, then simply add

require('mock-handlebars-loader')

to your test setup script, as the .handlebars extensions is being registered by default

However, if you are using other types of extensions, you can register them as follows:

const mockHandlebarsLoader = require('mock-handlebars-loader')

mockHandlebarsLoader.register(['.hbs', '.html'])
Example usage with mocha

mocha --require mock-handlebars-loader test/**/*.spec.js

FAQs

Package last updated on 27 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc