* set up jest dependencies
* add parser option to eslint to support es6
* migrate first test to jest
* migrate the argv test to shpec
* convert the env and literal store tests
* convert the file-store tests
* convert the memory-store tests
* convert the hierarchy tests
* convert the provider-save test
* convert the complete test
* convert the provider test
* convert the conf test
* tweak a test that was no longer working (context changed)
* replace in place the helpers file
* remove vows dependency
* update the test invocation to rely on jest
* update the argv test to be able to use the jest --verbose option
* Some tweaks to the test to have them working
* Update node version tested (+10 +12 -9)
* Replace const by var until we drop 0.10/0.12/4 node
* Replace let by var until we drop 0.10/0.12/4 node
* added fucntionality to toggle readonly for env store
* fixed issue with using lint
* updated readme to reflect env options change
* updated tests to better test readOnly property
* added fucntionality to toggle readonly for env store
* fixed issue with using lint
* updated readme to reflect env options change
* updated tests to better test readOnly property
* updated tests to fix issues.
* updated argv to have readOnly toggle-able
* added tests for argv toggle-able readonly
`hasOwnProperty(number)` can return true for strings.
This is unlikely to be the desired usage, and can mean that odd
responses are returned by nconf.
Disable trying to check `hasOwnProperty` of strings.
* argv store now accept a separator argument to create nested values
* remove stub file that shouldnt have been commited
* write a test to ensure separator is working well and use delete rather than undefined assign
* Added support for saving configuration to a specific file
Added support for saving configuration to a specific file
* add test to cover the save to file feature
* add posibility to specify a format to save to file
* add a test with nconf-yaml to ensure specifying a format works
The previous test was expecting the .match value to be a function rather than a regexp which is what the README shows. So I've fixed the code to match against a real regexp, and test if the stringified version of the regexp function is [object RegExp].
I've also updated the tests to prime the process.env with values that are specifically tested for to ensure it's correctly loading the env values.
Fixex indexzero/nconf#178
I stumbled over 2 slight problems of broken configuration files:
1) It said that a error in my JSON file existed (even though it was a yaml file, parsed by libyaml)
2) It didn't tell me which error occured.
both should be fixed with this PR