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 - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "mock-handlebars-loader",
"version": "1.0.2",
"version": "1.0.3",
"description": "Mock handlebars loader for testing",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,2 +5,19 @@ # mock-handlebars-loader

## Installation
`npm i -D mock-handlebars-loader`
`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`
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