Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node.js support #11

Closed
Pencroff opened this issue Feb 3, 2015 · 6 comments
Closed

Node.js support #11

Pencroff opened this issue Feb 3, 2015 · 6 comments

Comments

@Pencroff
Copy link

Pencroff commented Feb 3, 2015

Hi, I have tried to use this plugin for NodeJs project on webstorm.
But faced issue with require in my tests.
Message "ReferenceError: Can't find variable: require".
I use require for connecting chai and dependencies for test entity in my spec files.

var expect = require('chai').expect,
      path = require('path');

Also I need require for my internal behavior in test entity, something like

var path = require('path');
 // Using path in my logic

I saw in example configuration files, you suggest to list all dependencies in file section. This approach required change all exist tests and not compatible with any file that use require for loading dependencies.

Could you suggest solution for this issue?

@ArtemGovorov
Copy link
Member

Hi, node.js and io.js support is not yet implemented, only browser based Mocha tests supported at the moment. Node support is in progress and will be available relatively soon.

For node you will not have to list files in order, just will need to specify a pattern/folder where your source files are, because as you've correctly said - we don't need ordered files lists in case of CommonJs with require.

@ArtemGovorov ArtemGovorov changed the title Message "ReferenceError: Can't find variable: require" in mocha tests Node.js support Feb 5, 2015
@tomByrer
Copy link

tomByrer commented Feb 9, 2015

Hopefully an Atom editor plugin will follow io.js support ;)

@wojciak
Copy link

wojciak commented Feb 22, 2015

+1 for the node support, do you have an ETA on it? :)

P.s. awesome plugin! :)

@ArtemGovorov
Copy link
Member

Yes, node.js/io.js support is going to be released on Monday next week.

@wojciak
Copy link

wojciak commented Feb 22, 2015

Awesome!

@ArtemGovorov
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants