Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dtgoitia/rxjs-playground
RxJS playground with Node.js, TypeScript and Jasmine
https://github.com/dtgoitia/rxjs-playground
jasmine jasmine-marbles marble node nodejs playground rx rxjs sandbox test ts typescript
Last synced: about 2 months ago
JSON representation
RxJS playground with Node.js, TypeScript and Jasmine
- Host: GitHub
- URL: https://github.com/dtgoitia/rxjs-playground
- Owner: dtgoitia
- Created: 2019-06-16T07:39:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-03T13:52:19.000Z (about 2 years ago)
- Last Synced: 2023-03-08T05:00:44.547Z (almost 2 years ago)
- Topics: jasmine, jasmine-marbles, marble, node, nodejs, playground, rx, rxjs, sandbox, test, ts, typescript
- Language: TypeScript
- Size: 218 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node,js, TypeScript, RxJS and Jasmine playground
## Set up
### Locally
To use this playground in your machine, clone and install the repository:
```bash
git clone [email protected]:dtgoitia/rxjs-playground.git
cd rx-playground
npm ci
```### Installation free
You can access a remote container from your browser. This is a good option if you don't want to install anything in your machine.
To do so, use [GitPod](https://www.gitpod.io/docs/20_Browser_Extension/) to spin-up a container for free for you. Once the container is loaded, the tests will automatically run in watch mode.
## Usage
Add your files under `src/` and ensure your files containing tests end up with `.spec.ts`. Otherwise, Jasmine will not pick them up.
Run the tests in watch-mode:
```bash
npm run test-watch
```Run the tests only once:
```bash
npm test
```Being in watch-mode:
- type `rs` and press ENTER to run the test suit again.
- press Ctrl + C to exit watch mode## Debugging
Jasmine allows you to use the old `console.log`, `console.dir`.
## Configuration
Configuration files:
- Nodemon: `nodemon.json`
- Node TS: `tsconfig.json`
- Jasmine: `spec/support/jasmine.json`Actual setup:
- `nodemon` is configured to use execute `jasmine-ts`.
- `jasmine-ts` will by default pick Jasmine's JavaScript configuration (not changed).
- `jasmine-ts` will use `node-ts`.Jasmine is set up to use [reporters](https://github.com/bcaudan/jasmine-spec-reporter) for a cleaner test output.
- [Reporters configuration](https://github.com/bcaudan/jasmine-spec-reporter/blob/master/src/configuration.ts)
- [Custom output](https://github.com/bcaudan/jasmine-spec-reporter/blob/master/docs/customize-output.md)