Licence
ISC
Version
0.2.0
Deps
2
Vulns
0
Weekly
0
DeprecatedThis package is deprecated
Freshload
Description
A simple module to clear require cache and reload for testing.
Why
There are others out there but none were capable of clearing node-config properly.
Usage
// index.js
const config = require('config')
...
// test.js
const freshload = require('freshload')
test((t) => {
const app = freshload(../index.js)
...
})
Thanks
This code was inspired by this StackOverflow answer.