https://github.com/thdk/ts-jest-project-references
https://github.com/thdk/ts-jest-project-references
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thdk/ts-jest-project-references
- Owner: thdk
- Created: 2020-04-16T12:20:46.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T03:33:38.000Z (over 2 years ago)
- Last Synced: 2024-12-29T13:48:31.002Z (7 months ago)
- Language: TypeScript
- Size: 553 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
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