Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ert78gb/jasmine4-typescript-commonjs-example
Example repo of how to use Jasmine with Typescript in commonjs project
https://github.com/ert78gb/jasmine4-typescript-commonjs-example
Last synced: 13 days ago
JSON representation
Example repo of how to use Jasmine with Typescript in commonjs project
- Host: GitHub
- URL: https://github.com/ert78gb/jasmine4-typescript-commonjs-example
- Owner: ert78gb
- Created: 2022-01-09T12:49:02.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-20T18:32:17.000Z (over 2 years ago)
- Last Synced: 2024-04-14T07:26:59.277Z (8 months ago)
- Language: TypeScript
- Size: 6.84 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
This is an example project that represents how to set up a Node.js commonjs project with
[Jasmine@4](https://github.com/jasmine/jasmine-npm) for [TypeScript](https://github.com/microsoft/TypeScript).Key steps:
- add `@types/jasmine`, `@types/node` and `ts-node` to the dev dependencies `$ npm i --save-dev @types/jasmine ts-node @types/node`
- set `"type": "commonjs"` in the `package.json`
- create a [jasmine helper](jasmine-typescript-helper.js) that call `ts-node/register`
- register the helper in the `jasmine.json` config file