0.1.6 • Published 7 years ago

snapy-node v0.1.6

Weekly downloads
11
License
MIT
Repository
github
Last release
7 years ago

snapy-node

Plugin of snapy.

Test runner for node.

snapy.config

// ./test/snapy.config.js
module.exports = {

  // …

  // Pipes all output to terminal during testing. Usefull when developing snapy plugins
  directOutput: false, // Boolean

  // build target for webpack
  webpack.target: "node", // String

  // …

}

caveats

the test files will be bundled, thus __filename and __dirname won't work as expected. The same is true for all relatively required files:

// test/test.js
require("../lib/file.js")
// lib/file.js
console.log(__dirname) // will output . instead of lib/

You can disable bundling by prefixing a !. This will also exclude it from the change detection.

// test/test.js
require("!../lib/file.js")

License

Copyright (c) 2017 Paul Pflugradt Licensed under the MIT license.

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago