{"action":"closed","issue":{"url":"https://api.github.com/repos/dominictarr/rc/issues/37","labels_url":"https://api.github.com/repos/dominictarr/rc/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/dominictarr/rc/issues/37/comments","events_url":"https://api.github.com/repos/dominictarr/rc/issues/37/events","html_url":"https://github.com/dominictarr/rc/issues/37","id":52946859,"number":37,"title":"Can't find config in local dir","user":{"login":"anthonator","id":420061,"avatar_url":"https://avatars.githubusercontent.com/u/420061?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonator","html_url":"https://github.com/anthonator","followers_url":"https://api.github.com/users/anthonator/followers","following_url":"https://api.github.com/users/anthonator/following{/other_user}","gists_url":"https://api.github.com/users/anthonator/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonator/subscriptions","organizations_url":"https://api.github.com/users/anthonator/orgs","repos_url":"https://api.github.com/users/anthonator/repos","events_url":"https://api.github.com/users/anthonator/events{/privacy}","received_events_url":"https://api.github.com/users/anthonator/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-27T03:22:53Z","updated_at":"2015-08-30T01:47:56Z","closed_at":"2015-08-30T01:47:56Z","body":"I can't seem to get ```rc``` to behave like I assumed it would. I want to test loading my config by putting a ```.apprc``` file in my ```test``` directory. However, ```rc``` doesn't ever look there. I assumed it would look in the directory where the code was executing.\r\n\r\nI have a project with the following directory structure:\r\n\r\n```\r\n/ +\r\n  |\r\n  -- lib +\r\n        |\r\n        -- loadConfig.js\r\n  |\r\n  -- test +\r\n        |\r\n        -- .apprc\r\n        |\r\n        -- testLoadConfig.js\r\n```\r\n\r\n**loadConfig.js**\r\n\r\n```javascript\r\nvar conf = require('rc')('app');\r\n\r\nmodule.exports = function(options) {\r\n  console.log(conf);\r\n\r\n  return options;\r\n};\r\n```\r\n\r\n**testLoadConfig.js**\r\n\r\n```javascript\r\nvar assert = require('assert');\r\n\r\nvar loadConfig = require('../lib/loadConfig');\r\n\r\ndescribe('loadConfig', function() {\r\n  it('should load rc config', function() {\r\n    var config = loadConfig(); // assumed it would look for .apprc in project/test/.apprc\r\n\r\n    console.log(config); // outputs { _: [] }\r\n  });\r\n});\r\n```\r\n\r\nI figure this is either designed this way intentionally or is a technical limitation but it's causing some heartburn so I thought I'd bring it up."}}