0

I was trying running intern-client for nodejs server-side application. The terminal error I receive is

"node plugin failed to load because environment is not Node.js"

I tried adding

hasCache: {
        "host-node": 1, // Ensure we "force" the loader into Node.js mode
        "dom": 0 // Ensure that none of the code assumes we have a DOM
    },

configuration to my intern.js config file but no success.

Can anyone please suggest a way to configure intern for node-only apps using dojo.

Thanks

Rajat Talwar
  • 11,922
  • 1
  • 18
  • 12
  • have a look on http://stackoverflow.com/questions/22572008/how-to-mock-a-node-js-module-loaded-with-dojo-node – Mritunjay Jul 21 '14 at 04:27
  • This worked - http://stackoverflow.com/questions/18329026/how-to-run-intern-to-test-a-dojo-application-running-with-node-js – Rajat Talwar Jul 22 '14 at 06:41

0 Answers0