RxJS test runner playground #7254
moniuch
started this conversation in
Ideas / Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Would it be a bad idea to embed a testing playground on the rxjs docs site?
Create own rxjs-blitzes on the go and be able to run tests right off the bat
I have been using stackblitz for a while, but none of their templates (including rxjs) seems to come with a test runner pre-configured. I know it's possible but still a bit of a mystery of how to do that. Not an out-of-the-box thing, definitely. This might be discouraging from learning to test.
Having such a test playground could encourage people to skill up on their rxjs/testing techniques. For some devs it would at least be a way of getting familiar with the notion of testing (which in many organization is a problem of its own).
If you ask me, this feature would make my "rxjs docs site visitor" experience much more valuable.
Code examples as real test cases
I would see the operator code examples, and specifically assertions, to be migrated from the old-style
to real world assertions. Or at least provide a new option:
StackBlitz | jsBin | jsFiddle | Test Playground
gradually to more and more pages.
For a start, I think vitest could be used with its in-source way of writing tests.
Beta Was this translation helpful? Give feedback.
All reactions