Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including karmatic-nightmare with all npm packages installed. Try it out:

var karmaticNightmare = require("karmatic-nightmare")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

karmatic-nightmare v3.0.1

Fork of karmatic using Nightmare instead of Puppeteer

karmatic-nightmare

This is a fork of Karmatic which uses Nightmare as its browser instead of Chrome headless.

Options and usage more-or-less match karmatic; see its repo for more info.

Differences from Karmatic

  • Uses Nightmare instead of Puppeteer (runs in Electron instead of Chrome)
  • Uses Jest's expect instead of Jasmine's
  • You can use electron.require in your tests to require using electron (normal requires are compiled using Webpack)
  • You can use the --dev-tools CLI option to open Electron's Dev Tools UI
  • You can use the --test-setup-script CLI option to define a test setup file that runs before all tests run (eg --test-setup-script ./src/test-setup.js)
  • Has a fancy jest-style reporter

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free