{"action":"created","issue":{"url":"https://api.github.com/repos/wallabyjs/wallabify/issues/2","labels_url":"https://api.github.com/repos/wallabyjs/wallabify/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/wallabyjs/wallabify/issues/2/comments","events_url":"https://api.github.com/repos/wallabyjs/wallabify/issues/2/events","html_url":"https://github.com/wallabyjs/wallabify/issues/2","id":68897168,"number":2,"title":"Integration with proxyquireify","user":{"login":"loicplaire","id":1925075,"avatar_url":"https://avatars.githubusercontent.com/u/1925075?v=3","gravatar_id":"","url":"https://api.github.com/users/loicplaire","html_url":"https://github.com/loicplaire","followers_url":"https://api.github.com/users/loicplaire/followers","following_url":"https://api.github.com/users/loicplaire/following{/other_user}","gists_url":"https://api.github.com/users/loicplaire/gists{/gist_id}","starred_url":"https://api.github.com/users/loicplaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loicplaire/subscriptions","organizations_url":"https://api.github.com/users/loicplaire/orgs","repos_url":"https://api.github.com/users/loicplaire/repos","events_url":"https://api.github.com/users/loicplaire/events{/privacy}","received_events_url":"https://api.github.com/users/loicplaire/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wallabyjs/wallabify/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-16T10:44:24Z","updated_at":"2015-12-04T14:34:50Z","closed_at":"2015-04-17T09:07:49Z","body":"I use browserify/react/proxyquireify on my project. I got the first two working but whenever I use proxyquire in my specs, i get errors like the one below:\r\n\r\n```\r\nError: Cannot find module '../../../../app/components/Ads/PolarNativeAdTeaser'\r\n\tat app-test/specs/components/Ads/PolarNativeAdTeaserSpec.js:17\r\n```\r\n\r\nI believe I call the proxyquireify plugin correct in wallaby.js is:\r\n\r\n```javascript\r\n'use strict';\r\n\r\nvar wallabify = require('wallabify');\r\nvar proxyquireify = require('proxyquireify');\r\n\r\nvar wallabyPostprocessor = wallabify({},\r\n    function(b){\r\n        return b.plugin(proxyquireify.plugin);\r\n    }\r\n);\r\n\r\nmodule.exports = function () {\r\n    return {\r\n        files: [\r\n            'node_modules/react-tools/src/test/phantomjs-shims.js',\r\n            {\r\n                pattern: 'app/**/*.js',\r\n                load: false\r\n            },\r\n            {\r\n                pattern: 'app-mock/**/*.js',\r\n                load: false,\r\n                instrument: false\r\n            }\r\n        ],\r\n\r\n        tests: [\r\n            {\r\n                pattern: 'app-test/**/*Spec.js',\r\n                load: false\r\n            }\r\n        ],\r\n\r\n        testFramework: 'mocha@2.0.1',\r\n\r\n        preprocessors: {\r\n            'app*/**/*.js': function(file) {\r\n                return require('babel').transform(file.content, {sourceMap: true});\r\n            }\r\n        },\r\n\r\n        postprocessor: wallabyPostprocessor,\r\n\r\n        bootstrap: function () {\r\n            window.__moduleBundler.loadTests();\r\n        }\r\n    };\r\n};\r\n\r\n```\r\n\r\nMy spec is:\r\n\r\n```javascript\r\nvar proxyquire = require('proxyquireify')(require);\r\nvar PolarAdSlotTeaser = proxyquire('../../../../app/components/Ads/PolarNativeAdTeaser', {\r\n    'react': Context.React,\r\n    '../../utils/mixins/PolarNativeAdMixin': {}\r\n});\r\n```\r\n\r\nA similar karma config using the proxyquireify plugin works without any issue with the exact same specs. \r\n\r\nAm I doing something wrong? "},"comment":{"url":"https://api.github.com/repos/wallabyjs/wallabify/issues/comments/161981417","html_url":"https://github.com/wallabyjs/wallabify/issues/2#issuecomment-161981417","issue_url":"https://api.github.com/repos/wallabyjs/wallabify/issues/2","id":161981417,"user":{"login":"Almenit","id":5937466,"avatar_url":"https://avatars.githubusercontent.com/u/5937466?v=3","gravatar_id":"","url":"https://api.github.com/users/Almenit","html_url":"https://github.com/Almenit","followers_url":"https://api.github.com/users/Almenit/followers","following_url":"https://api.github.com/users/Almenit/following{/other_user}","gists_url":"https://api.github.com/users/Almenit/gists{/gist_id}","starred_url":"https://api.github.com/users/Almenit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Almenit/subscriptions","organizations_url":"https://api.github.com/users/Almenit/orgs","repos_url":"https://api.github.com/users/Almenit/repos","events_url":"https://api.github.com/users/Almenit/events{/privacy}","received_events_url":"https://api.github.com/users/Almenit/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T14:34:50Z","updated_at":"2015-12-04T14:34:50Z","body":"Any idés how to be able to use it with typescript? Is this the way to go?\r\n```javascript\r\nimport proxy from \"proxyquireify\";\r\nvar proxyquireify = proxy(require);\r\n```"}}