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

Mock data plugin #20

Open
blakeembrey opened this issue Jun 17, 2015 · 3 comments
Open

Mock data plugin #20

blakeembrey opened this issue Jun 17, 2015 · 3 comments
Assignees

Comments

@blakeembrey
Copy link
Member

Provide the ability to mock requests and responses simply by overriding the request mechanism in use.

@ondrejhanslik
Copy link

It's easier to mock data on a proxy, not in the library that is performing the requests. It's also easier to mantain because you don't have to clutter production code with mocking code but keep it as a part of build set up.

@blakeembrey
Copy link
Member Author

@ondrejhanslik I agree. I thought it'd be a nice demo of a plugin if it can show the transport mechanism being overridden, but yeah, it's probably going to cause confusion. Something that is interesting and I thought about with this is a plugin that adds caching of requests to the node handler (for example, writes to filesystem or stores requests in memory and handles caching like the browser does).

@blakeembrey
Copy link
Member Author

I'm going to close this, I have https://github.com/blakeembrey/popsicle-cache now which is intercepting HTTP requests and using the transport layer.

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

2 participants