test-hmr
Testbed for webpack HMR
Last updated 7 months ago by rixo .
MIT · Original npm · Tarball · package.json
$ cnpm install test-hmr 
SYNC missed versions from official npm registry.

test-hmr

Testbed for Webpack HMR.

Spins Puppeteer + Web Dev Server with a virtual in-memory file system.

Test utils let you pilot the virtual FS, and wait until HMR update has been applied (by detecting the console message: "[HMR] App is up to date.").

Usage

Create a bootstrap file pointing to the app under test:

// test/bootstrap.js
const { bootstrap } = require('test-hmr')

bootstrap()

Require test-hmr to run your tests:

npx mocha --require test-hmr test

Current Tags

  • 0.0.8                                ...           latest (7 months ago)
  • 0.1.0-6                                ...           next (5 months ago)

17 Versions

  • 0.1.0-6                                ...           5 months ago
  • 0.1.0-5                                ...           5 months ago
  • 0.1.0-4                                ...           6 months ago
  • 0.1.0-3                                ...           6 months ago
  • 0.1.0-2                                ...           6 months ago
  • 0.1.0-1                                ...           6 months ago
  • 0.1.0-0                                ...           6 months ago
  • 0.0.8                                ...           7 months ago
  • 0.0.7                                ...           7 months ago
  • 0.0.6                                ...           8 months ago
  • 0.0.5                                ...           8 months ago
  • 0.0.4                                ...           8 months ago
  • 0.0.3                                ...           8 months ago
  • 0.0.3-0                                ...           8 months ago
  • 0.0.2                                ...           9 months ago
  • 0.0.1                                ...           10 months ago
  • 0.0.1-0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (21)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |