Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

Add support for require'd scripts in static scope in tests. #9

Open
lightsofapollo opened this issue Apr 27, 2012 · 0 comments
Open

Comments

@lightsofapollo
Copy link
Contributor

For example:

require('./somefile.js');

describe(function(){
  //some file is undefined because require is async
  SomeFile.testUtil();
});

This can be fixed by adding an option to overload "describe" with a shim that will fire the real describe block after all requires finish.

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

No branches or pull requests

1 participant