# @ketan/jasmine-webpack-plugin

> Run jasmine specs using webpack or webpack-dev-server

Latest version **0.1.1** (published 2017-02-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ketan/jasmine-webpack-plugin
pnpm add @ketan/jasmine-webpack-plugin
yarn add @ketan/jasmine-webpack-plugin
bun add @ketan/jasmine-webpack-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2017-02-10 |
| First published | 2017-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Isobel Redelmeier |
| Maintainers | ketan |
| Keywords | jasmine, webpack, webpack-plugin, test, testing, spec, hmr |

## Links

- npm: https://www.npmjs.com/package/@ketan/jasmine-webpack-plugin
- Repository: https://github.com/iredelmeier/jasmine-webpack-plugin
- Homepage: https://github.com/iredelmeier/jasmine-webpack-plugin#readme
- Issues: https://github.com/iredelmeier/jasmine-webpack-plugin/issues
- npm.io page: https://npm.io/package/@ketan/jasmine-webpack-plugin

## Dependencies (2)

- [jasmine-core](https://npm.io/package/jasmine-core.md) ^2.3.4
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) ^1.6.2

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2017-02-10

## README

# Jasmine Webpack Plugin

A simple webpack plugin that creates a specRunner.html file for running Jasmine specs
in the browser, e.g., for use with webpack-dev-server and hot module replacement for
fast development.

### Usage

In your webpack configuration:

```javascript
// webpack-test.config.js

var jasmineWebpackPlugin = require('jasmine-webpack-plugin');

module.exports = {
  entry: ['specRoot.js'],
  // ... more configuration
  plugins: [new JasmineWebpackPlugin()]
};
```

### Options

**filename** - output filename; defaults to _specRunner.html

### Notes

Webpack doesn't support wildcards in config.entry. As a workaround to easily build
and watch your spec files, you can provide something like this in your entry file:

```javascript
// specRoot.js

const requireAll = (requireContext) => { requireContext.keys().map(requireContext); };

requireAll(require.context('spec/helpers/', true, /\.js$/));
requireAll(require.context('spec/', true, /[sS]pec\.js$/));
```

See [require.context](https://webpack.github.io/docs/context.html#require-context)

---
_Source: https://npm.io/package/@ketan/jasmine-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
