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

Having a hard time setting up unit testing #448

Closed
OscarGodson opened this issue Nov 3, 2014 · 2 comments
Closed

Having a hard time setting up unit testing #448

OscarGodson opened this issue Nov 3, 2014 · 2 comments

Comments

@OscarGodson
Copy link

I'm having a tough time figuring out how to unit test my code. I have a <Link> in one of my components. I want to test the code. I've read the tickets like #70 that suggest using registerRoutes but I can't find any docs on it and searching the code I can't seem to find that method anywhere (im using the GitHub "this repo" search). Most of the comments I'm finding assume one knows how to use registerRoutes but I don't. Are there docs somewhere or examples that I'm just missing?

I just get these errors right now

piggybank front-end spec runner 2014-11-03 14-28-38

@OscarGodson
Copy link
Author

Oh, and I'm using browserify (so commonjs)

@ryanflorence
Copy link
Member

yeah, this is a huge pain point and reason why we've got a new api coming that makes testing much simpler, for now, see #437

@lock lock bot locked as resolved and limited conversation to collaborators Jan 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants