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

Add support for testing pipes #203

Closed
NetanelBasal opened this issue Oct 10, 2019 · 2 comments
Closed

Add support for testing pipes #203

NetanelBasal opened this issue Oct 10, 2019 · 2 comments

Comments

@NetanelBasal
Copy link
Member

const createPipe = createPipeFactory({
  pipe: MyPipe,
  // ...
});

it('should ...', () => {
  const pipe = createPipe(`'foo' | myPipe`)
});

it('should ...', () => {
  const pipe = createPipe(`foo | myPipe`, {
    hostProps: { foo: 'lorem' }
  });
});
  • it should work with a host component
  • it should accept a custom host component
  • it should accept host props
  • it should accept provider overrides
@NetanelBasal NetanelBasal changed the title Support for testing pipes Add support for testing pipes Dec 5, 2019
@LayZeeDK LayZeeDK mentioned this issue Feb 13, 2020
11 tasks
@NetanelBasal NetanelBasal reopened this Feb 14, 2020
@kanafghan
Copy link
Contributor

I could try to provide a PR :-)

@NetanelBasal
Copy link
Member Author

Go for it :)

kanafghan added a commit to kanafghan/spectator that referenced this issue Feb 22, 2020
This is a WIP on adding support for testing pipes

Resolves ngneat#203
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

3 participants