Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thdk/ts-jest-project-references


https://github.com/thdk/ts-jest-project-references

Last synced: about 18 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Setup jest for typescript project references using ts-jest

Minimal repository to reproduce issue with ts-jest when using typescript project references.

### Install

Run `npm install` in both *shared* and *project* folder.

```
cd shared
npm install
cd ../project
npm install
```

### Project setup
#### Folders:
* **project**: the main typescript project, runs unit test with jest and ts-jest
* **shared**: a libary with some helper functions that can be used in unit tests

#### Branches:
* **master**: seems to work
* **project-with-out-dir**: doesn't work, only added `"outDir": "./dist"` to tsconfig.json of project