Skip to content

Latest commit

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

snapy-node

Plugin of snapy.

Test runner for node.

snapy.config

// ./test/snapy.config.jsmodule.exports={// …// Pipes all output to terminal during testing. Usefull when developing snapy pluginsdirectOutput: 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.jsrequire("../lib/file.js")// lib/file.jsconsole.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.jsrequire("!../lib/file.js")

License

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

About

Test runner for node

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages