Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kulshekhar/ts-jest
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9eef99a0a7b2ad94d17d97481e55a81300e4a074
Choose a base ref
...
head repository: kulshekhar/ts-jest
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6916e7b5d461f34cf5ddc1ae05d235bdcea6d689
Choose a head ref

Commits on Dec 15, 2017

  1. changed some build scripts

    GeeWee committed Dec 15, 2017
    Copy the full SHA
    942427e View commit details
  2. logging works now

    GeeWee committed Dec 15, 2017
    Copy the full SHA
    d329332 View commit details
  3. Copy the full SHA
    14f192a View commit details
  4. added comment

    GeeWee committed Dec 15, 2017
    Copy the full SHA
    ec89eba View commit details
  5. long path

    GeeWee committed Dec 15, 2017
    Copy the full SHA
    6f8c13b View commit details
  6. added comment

    GeeWee committed Dec 15, 2017
    Copy the full SHA
    27cffb0 View commit details

Commits on Jan 19, 2018

  1. Clarify warning

    I found this confusing so I took the wording from #327, customized it for context and added it to the `README` to avoid future confusion.
    Michael Tiller authored Jan 19, 2018
    Copy the full SHA
    d245f63 View commit details

Commits on Jan 20, 2018

  1. Add @xogeny to the author list

    kulshekhar authored Jan 20, 2018
    Copy the full SHA
    21b6f2e View commit details
  2. Merge pull request #416 from xogeny/patch-1

    Clarify warning
    kulshekhar authored Jan 20, 2018
    Copy the full SHA
    f6eeef7 View commit details

Commits on Jan 23, 2018

  1. Copy the full SHA
    7e9ce40 View commit details

Commits on Jan 26, 2018

  1. Merge remote-tracking branch 'origin/master' into logging

    Conflicts:
    	src/preprocessor.ts
    	src/utils.ts
    GeeWee committed Jan 26, 2018
    Copy the full SHA
    97ed727 View commit details
  2. added a snapshot

    GeeWee committed Jan 26, 2018
    Copy the full SHA
    432a3f8 View commit details
  3. removed debug folder

    GeeWee committed Jan 26, 2018
    Copy the full SHA
    4348cb2 View commit details
  4. Copy the full SHA
    64a3e57 View commit details
  5. updated issue template

    GeeWee committed Jan 26, 2018
    Copy the full SHA
    134fcdf View commit details
  6. added missing files

    GeeWee committed Jan 26, 2018
    Copy the full SHA
    15f94ac View commit details
  7. added file

    GeeWee committed Jan 26, 2018
    Copy the full SHA
    632614a View commit details
  8. test this with travis

    GeeWee committed Jan 26, 2018
    Copy the full SHA
    5e5187a View commit details
  9. added proper env handling

    GeeWee committed Jan 26, 2018
    Copy the full SHA
    520cc6d View commit details
  10. removed snapshot

    GeeWee committed Jan 26, 2018
    Copy the full SHA
    321a127 View commit details
  11. long path

    GeeWee committed Jan 26, 2018
    Copy the full SHA
    23b7eba View commit details

Commits on Jan 27, 2018

  1. Merge pull request #421 from kulshekhar/greenkeeper/yargs-11.0.0

    Update yargs to the latest version 🚀
    kulshekhar authored Jan 27, 2018
    Copy the full SHA
    4c3aaac View commit details
  2. Copy the full SHA
    74bb38f View commit details

Commits on Jan 29, 2018

  1. bumped version#

    GeeWee committed Jan 29, 2018
    Copy the full SHA
    19b2273 View commit details
  2. Merge pull request #393 from kulshekhar/logging

    Logging
    kulshekhar authored Jan 29, 2018
    Copy the full SHA
    17c2862 View commit details

Commits on Feb 3, 2018

  1. feat: add option to run TypeScript diagnostics

    By creating a `program` we are enabled to run diagnostics on typescipt files in order to emit semantic errors. For the time being I only used one of the many methods this one is `getPreEmitDiagnostics`
    
    This enables syntactic & semantic TypeScript error reporting
    alan-agius4 committed Feb 3, 2018
    Copy the full SHA
    13b77d9 View commit details
  2. chore: bump for release

    alan-agius4 committed Feb 3, 2018
    Copy the full SHA
    057bc7d View commit details
  3. Copy the full SHA
    16fad85 View commit details
  4. Copy the full SHA
    32ac27c View commit details
  5. Merge pull request #427 from alan-agius4/feature/emit-error

    feat: add option to run TypeScript diagnostics
    kulshekhar authored Feb 3, 2018
    Copy the full SHA
    8350b4f View commit details
  6. Reorganize README.

    kulshekhar committed Feb 3, 2018
    Copy the full SHA
    d9ad63c View commit details
  7. Update readme toc

    kulshekhar committed Feb 3, 2018
    Copy the full SHA
    0da22f2 View commit details
  8. Merge pull request #429 from kulshekhar/readme-fix

    Readme fix
    kulshekhar authored Feb 3, 2018
    Copy the full SHA
    a0951a5 View commit details

Commits on Feb 10, 2018

  1. Copy the full SHA
    15b777f View commit details

Commits on Feb 11, 2018

  1. Include useBabelrc in react-native example

    As far as I know `useBabelrc` has to be set to true so that ts-jest uses the `.babelrc`. Since the react-native section declares a `.babelrc` it should also show that the option needs to be enabled.
    danilobuerger committed Feb 11, 2018
    Copy the full SHA
    240a4eb View commit details
  2. Merge pull request #437 from danilobuerger/patch-1

    Include useBabelrc in react-native example
    kulshekhar authored Feb 11, 2018
    Copy the full SHA
    910218d View commit details
  3. Copy the full SHA
    85ab66b View commit details
  4. Adjust changelog and authors

    ahnpnl committed Feb 11, 2018
    Copy the full SHA
    3174435 View commit details
  5. Merge branch 'feature/add-changelog' of https://github.com/AhnpGit/ts…

    …-jest into feature/add-changelog
    ahnpnl committed Feb 11, 2018
    Copy the full SHA
    e6cba9f View commit details
  6. Merge pull request #435 from AhnpGit/feature/add-changelog

    Add CHANGELOG.md for documentation new changes every release
    kulshekhar authored Feb 11, 2018
    Copy the full SHA
    63f95bb View commit details
  7. Copy the full SHA
    e3911de View commit details
  8. Copy the full SHA
    0d7007f View commit details
  9. Copy the full SHA
    36e93c6 View commit details
  10. Merge pull request #438 from kamijin-fanta/feat/multi-project

    support for jest multi-projects
    kulshekhar authored Feb 11, 2018
    Copy the full SHA
    ea5b0a5 View commit details

Commits on Feb 14, 2018

  1. Copy the full SHA
    93f424c View commit details

Commits on Feb 21, 2018

  1. Copy the full SHA
    e26123d View commit details

Commits on Feb 25, 2018

  1. Merge pull request #441 from eteeselink/patch-1

    Update README.md to "fix" #355
    kulshekhar authored Feb 25, 2018
    Copy the full SHA
    2088210 View commit details
  2. Copy the full SHA
    3b8e6e4 View commit details
  3. Merge pull request #446 from kulshekhar/greenkeeper/lint-staged-7.0.0

    Update lint-staged to the latest version 🚀
    kulshekhar authored Feb 25, 2018
    Copy the full SHA
    12be6a7 View commit details
  4. Copy the full SHA
    05f76ae View commit details
Showing with 12,193 additions and 2,122 deletions.
  1. +0 −21 .github/ISSUE_TEMPLATE
  2. +20 −0 .github/ISSUE_TEMPLATE.md
  3. +4 −0 .gitignore
  4. +4 −1 .travis.yml
  5. +9 −0 AUTHORS
  6. +3 −0 CHANGELOG.md
  7. +60 −0 COLLABORATORS.md
  8. +94 −24 README.md
  9. +6 −1 appveyor.yml
  10. +0 −28 collaborator-guidelines.md
  11. +0 −11 index.d.ts
  12. +0 −16 index.js
  13. +8,090 −0 package-lock.json
  14. +47 −46 package.json
  15. +0 −1 preprocessor.js
  16. +26 −50 scripts/tests.js
  17. +16 −0 src/index.ts
  18. +0 −15 src/install.ts
  19. +0 −77 src/jest-types.ts
  20. +112 −56 src/postprocess.ts
  21. +75 −0 src/preprocess.ts
  22. +0 −86 src/preprocessor.ts
  23. +0 −17 src/transpile-if-ts.ts
  24. +57 −0 src/transpiler.ts
  25. +47 −0 src/types.ts
  26. +0 −206 src/utils.ts
  27. +38 −0 src/utils/cache-file.ts
  28. +13 −0 src/utils/constants.ts
  29. +16 −0 src/utils/format-diagnostics.ts
  30. +22 −0 src/utils/get-babel-rc.ts
  31. +26 −0 src/utils/get-cache-key.ts
  32. +131 −0 src/utils/get-ts-config.ts
  33. +8 −0 src/utils/get-ts-jest-config.ts
  34. +52 −0 src/utils/logger.ts
  35. +18 −0 src/utils/run-ts-diagnostics.ts
  36. +26 −0 tests/__helpers__/mock-jest-config.ts
  37. +23 −5 tests/__helpers__/runJest.ts
  38. +5 −5 tests/__helpers__/runJestInWatchMode.ts
  39. +16 −7 {src → tests/__helpers__}/test-utils.ts
  40. +16 −15 tests/__helpers__/utils.ts
  41. +8 −4 tests/__tests__/__snapshots__/html-transform.spec.ts.snap
  42. +12 −0 tests/__tests__/__snapshots__/ts-coverage-async.spec.ts.snap
  43. +12 −0 tests/__tests__/__snapshots__/ts-coverage.spec.ts.snap
  44. +31 −0 tests/__tests__/__snapshots__/tsconfig-comments.spec.ts.snap
  45. +20 −0 tests/__tests__/__snapshots__/tsconfig-default.spec.ts.snap
  46. +53 −0 tests/__tests__/__snapshots__/tsconfig-string.spec.ts.snap
  47. +4 −4 tests/__tests__/babel-config.spec.ts
  48. +2 −2 tests/__tests__/babelrc.spec.ts
  49. +29 −0 tests/__tests__/debug.spec.ts
  50. +15 −0 tests/__tests__/disable-sourcemap-support.spec.ts
  51. +28 −24 tests/__tests__/get-cache-key.spec.ts
  52. +39 −11 tests/__tests__/html-transform.spec.ts
  53. +9 −0 tests/__tests__/import-json.spec.ts
  54. +2 −3 tests/__tests__/import.spec.ts
  55. +4 −7 tests/__tests__/jest-hoist.spec.ts
  56. +10 −0 tests/__tests__/jest-projects-with-workspace.spec.ts
  57. +10 −0 tests/__tests__/jest-projects.spec.ts
  58. +1 −1 tests/__tests__/jestconfig-json.spec.ts
  59. +1 −1 tests/__tests__/jestconfig-package.spec.ts
  60. +11 −0 tests/__tests__/long-path.spec.ts
  61. +28 −31 tests/__tests__/postprocess.spec.ts
  62. +24 −0 tests/__tests__/rel-config-paths.spec.ts
  63. +1 −1 tests/__tests__/synthetic-default-imports.spec.ts
  64. +0 −23 tests/__tests__/transpile-if-ts.spec.ts
  65. +34 −0 tests/__tests__/transpiler.spec.ts
  66. +2 −3 tests/__tests__/ts-compilation.spec.ts
  67. +2 −5 tests/__tests__/ts-coverage-async.spec.ts
  68. +2 −5 tests/__tests__/ts-coverage.spec.ts
  69. +13 −0 tests/__tests__/ts-diagnostics.spec.ts
  70. +2 −2 tests/__tests__/ts-errors.spec.ts
  71. +3 −1 tests/__tests__/ts-jest-module-interface.spec.ts
  72. +20 −22 tests/__tests__/tsconfig-comments.spec.ts
  73. +56 −64 tests/__tests__/tsconfig-default.spec.ts
  74. +24 −72 tests/__tests__/tsconfig-string.spec.ts
  75. +2 −2 tests/__tests__/tsx-compilation.spec.ts
  76. +2 −2 tests/__tests__/tsx-errors.spec.ts
  77. +22 −0 tests/__tests__/use-config-from-node-modules.spec.ts
  78. +3 −3 tests/__tests__/use-strict.spec.ts
  79. +3 −3 tests/__tests__/watch.spec.ts
  80. +1 −5 tests/babel-config-invalid/__tests__/index.test.ts
  81. +1 −1 tests/babel-config-merge-ignore-babelrc/package.json
  82. +1 −1 tests/babel-config-merge-with-babelrc/package.json
  83. +1 −1 tests/button/package.json
  84. +1 −1 tests/dynamic-imports/jest.allowdefaultimports.json
  85. +1 −1 tests/dynamic-imports/package.json
  86. +2 −2 tests/hoist-errors/Hello.ts
  87. +1 −2 tests/hoist-errors/package.json
  88. +2 −2 tests/hoist-test/__tests__/jest-hoist.test.ts
  89. +1 −1 tests/hoist-test/package.json
  90. +1 −0 tests/import-json/.gitignore
  91. +9 −0 tests/import-json/__tests__/pkg.test.ts
  92. +15 −0 tests/import-json/package.json
  93. +3 −0 tests/import-json/pkg.ts
  94. +5 −0 tests/import-json/tsconfig.json
  95. +1 −1 tests/imports-test/package.json
  96. +20 −0 tests/jest-projects-with-workspace/package.json
  97. +18 −0 tests/jest-projects-with-workspace/packages/bar/package.json
  98. +3 −0 tests/jest-projects-with-workspace/packages/bar/src/index.ts
  99. +5 −0 tests/jest-projects-with-workspace/packages/bar/test/index.test.ts
  100. +8 −0 tests/jest-projects-with-workspace/packages/bar/tsconfig.json
  101. +18 −0 tests/jest-projects-with-workspace/packages/foo/package.json
  102. +3 −0 tests/jest-projects-with-workspace/packages/foo/src/index.ts
  103. +5 −0 tests/jest-projects-with-workspace/packages/foo/test/index.test.ts
  104. +8 −0 tests/jest-projects-with-workspace/packages/foo/tsconfig.json
  105. +5 −0 tests/jest-projects/package.json
  106. +3 −0 tests/jest-projects/packages/child/Hello.ts
  107. +5 −0 tests/jest-projects/packages/child/__test__/index.test.ts
  108. +8 −0 tests/jest-projects/packages/child/custom-tsconfig.json
  109. +22 −0 tests/jest-projects/packages/child/package.json
  110. +0 −1 tests/jestconfig-test/jest.json
  111. +76 −0 tests/metadata-emit/__tests__/metadata.test.ts
  112. +22 −0 tests/metadata-emit/package.json
  113. +25 −0 tests/metadata-emit/src/classes.ts
  114. +3 −0 tests/metadata-emit/src/other-class.ts
  115. +14 −0 tests/metadata-emit/tsconfig.json
  116. +1 −0 tests/no-sourcemaps/.gitignore
  117. +28 −0 tests/no-sourcemaps/Hello.ts
  118. 0 ...src-path/long-src-path/long-src-path/long-src-path/long-src-path → no-sourcemaps}/NullCoverage.js
  119. +9 −0 tests/no-sourcemaps/__tests__/Hello.test.ts
  120. +27 −0 tests/no-sourcemaps/package.json
  121. +10 −0 tests/no-sourcemaps/tsconfig.json
  122. +1 −1 tests/no-synthetic-default/package.json
  123. +14 −0 tests/rel-config-paths/config/jest.config.invalid.js
  124. +14 −0 tests/rel-config-paths/config/jest.config.js
  125. +6 −0 tests/rel-config-paths/config/tsconfig.base.json
  126. +6 −0 tests/rel-config-paths/config/tsconfig.test.json
  127. +9 −0 tests/rel-config-paths/custom-test-dir/test.ts
  128. +1 −0 tests/rel-config-paths/package.json
  129. +3 −0 tests/rel-config-paths/src/index.ts
  130. +1 −1 tests/simple-async/Hello.ts
  131. +1 −2 tests/simple-async/package.json
  132. +1 −1 tests/simple-long-path/package.json
  133. 0 ...ng-src-path/long-src-path/long-src-path/long-src-path/long-src-path/long-src-path → src}/Hello.ts
  134. +6 −0 tests/simple-long-path/src/NullCoverage.ts
  135. +1 −1 tests/simple/Hello.ts
  136. +0 −1 tests/simple/package.json
  137. +1 −1 tests/skip-babelrc/Hello.ts
  138. +1 −2 tests/skip-babelrc/package.json
  139. +1 −1 tests/synthetic-default/package.json
  140. +1 −1 tests/synthetic-default/tsconfig.json
  141. +17 −0 tests/ts-diagnostics/Hello.ts
  142. +7 −0 tests/ts-diagnostics/__tests__/Hello.test.ts
  143. +24 −0 tests/ts-diagnostics/package.json
  144. +8 −0 tests/ts-diagnostics/tsconfig.json
  145. +7 −4 tests/ts-jest-module-interface/__tests__/ts-jest-module-interface.test.ts
  146. +1 −1 tests/tsconfig-test/allows-comments2.json
  147. +0 −26 tests/tsconfig.json
  148. +1 −1 tests/use-babelrc/Hello.ts
  149. +1 −1 tests/use-babelrc/package.json
  150. +28 −0 tests/use-config-from-node-modules/Hello.ts
  151. +9 −0 tests/use-config-from-node-modules/__tests__/Hello.test.ts
  152. +20 −0 tests/use-config-from-node-modules/package.json
  153. +13 −0 tests/use-config-from-node-modules/tsconfig.json
  154. +1 −1 tests/use-strict/Strict-valid.ts
  155. +0 −2 tests/use-strict/__tests__/Strict-valid.test.ts
  156. +0 −2 tests/use-strict/__tests__/Strict.test.ts
  157. +1 −2 tests/use-strict/package.json
  158. +1 −1 tests/watch-test/Hello.ts
  159. +1 −2 tests/watch-test/package.json
  160. +6 −12 tsconfig.json → tsconfig.base.json
  161. +11 −0 tsconfig.build.json
  162. +19 −0 tslint.json
  163. +1,933 −1,052 yarn.lock
21 changes: 0 additions & 21 deletions .github/ISSUE_TEMPLATE

This file was deleted.

20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!-- First of all, check the troubleshooting wiki page for common issues at:
https://github.com/kulshekhar/ts-jest/wiki/Troubleshooting -->

## Issue <!-- describe the issue below -->:


## Expected behavior <!-- describe the expected behavior below -->:


## Output from debug log <!-- You can activate the debug logger by setting the environment variable TS_JEST_DEBUG="true" before running yarn test. The output of the logger will be in **<your_project_dir>/node_modules/ts-jest/debug.txt**, paste it below -->:
```bash
# content of debug.txt :

```


## Minimal repo <!-- If you haven't already, create the smallest possible repo that reproduces this issue by running `npm install` and `npm test`. This will speed up any fixes that this issue might need. Paste the minimal repo URL below -->:


<!-- Optional (but highly recommended): Configure Travis (or your favorite system) with the minimal repo. This allows potential solutions to be tested against the minimal repo. This saves everyone time and avoids a lot of back and forth. -->
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -43,3 +43,7 @@ jspm_packages

.vscode
.idea


# Long paths
tests/simple-long-path/long-src-path
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
dist: trusty
sudo: required
language: node_js
cache: yarn
git:
depth: 5
node_js:
- "9"
- "10"
- "8"
- "6"
before_install:
9 changes: 9 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -3,38 +3,46 @@
#
# Name/Organization <email address>

Ahn Pham <anhpnnd@gmail.com>
Alan Agius <alan.agius4@gmail.com>
Alex Jover Morales <alexjovermorales@gmail.com>
Andreas Krummsdorf <andreas.krummsdorf@doksafe.de>
Anonymous <goodforonefare@gmail.com>
Bartosz Gościński <bargosc@gmail.com>
Blake Embrey <hello@blakeembrey.com>
Bnaya Peretz <me@bnaya.net>
Brian Ruddy <briancruddy@gmail.com>
Chong Guo <cguo@azendless.com>
Chris Sauve <chrismsauve@gmail.com>
Christian Linne <ShadowVampire@web.de>
Christian Rackerseder <git@echooff.de>
Daniel Perez Alvarez <unindented@gmail.com>
Danilo Bürger <info@danilobuerger.de>
David Schkalee <david.schkalee@magicline.de>
David Sheldrick <djsheldrick@gmail.com>
Emil Persson <emil.n.persson@gmail.com>
Eric Anderson <e@ericlanderson.com>
Felipe Matos <felipems@yahoo.com.br>
Forbes Lindesay <forbes@lindesay.co.uk>
Gino Zhang <whitetrefoil@gmail.com>
Gregor Stamac <1668205+gstamac@users.noreply.github.com>
Gustav Wengel <gustavwengel@gmail.com>
Henry Zektser <japhar81@gmail.com>
Huafu Gandon <huafu.gandon@gmail.com>
Ihor Chulinda <ichulinda@gmail.com>
J Cheyo Jimenez <cheyo@masters3d.com>
Jim Cummins <jimthedev@gmail.com>
Joscha Feth <joscha@feth.com>
Junle Li <lijunle@gmail.com>
Justin Bay <jwbay@users.noreply.github.com>
Kamijin Fanta <kamijin@live.jp>
Kulshekhar Kabra <kulshekhar@users.noreply.github.com>
Kyle Roach <kroach.work@gmail.com>
Marshall Bowers <elliott.codes@gmail.com>
Martijn The <post@martijnthe.nl>
Matheus Gambati <matheusgambati@gmail.com>
Maxim Samoilov <samoilowmaxim@gmail.com>
Michael Tiller <michael.tiller@xogeny.com>
Mohammad Rajabifard <mo.rajbi@gmail.com>
OJ Kwon <kwon.ohjoong@gmail.com>
Oliver Joseph Ash <oliverjash@gmail.com>
@@ -45,5 +53,6 @@ Rikki Tooley <rikki.tooley@travellocal.com>
Simen Bekkhus <sbekkhus91@gmail.com>
Thomas Fontaine <thomas.fontaine@me.com>
Tom Crockett <tomcrockett@tuplehealth.com>
Tony Valderrama <tony.valderrama@outlook.com>
Trivikram Kamat <trivikr.dev@gmail.com>
Umidbek Karimov <uma.karimov@gmail.com>
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#### All release changes can be seen in the release page

Release page URL: https://github.com/kulshekhar/ts-jest/releases
60 changes: 60 additions & 0 deletions COLLABORATORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents**

- [Collaborator Guidelines](#collaborator-guidelines)
- [Installing and building the project](#installing-and-building-the-project)
- [Merging PRs](#merging-prs)
- [Versioning](#versioning)
- [Tests](#tests)
- [How to add tests](#how-to-add-tests)
- [How to run tests](#how-to-run-tests)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

# Collaborator Guidelines

ts-jest is grateful for all issues, PRs and contributions. In this file are tips for getting started contributing,
and best practices, so that we can ensure that we can maintain this project in the future.

## Installing and building the project

To be able to install and build the project probably, `rimraf` is required. Install `rimraf` by running
```
yarn global add rimraf
```

After installing `rimraf`, `yarn` command can be run normally when installing dependencies for the project

## Merging PRs

1. A PR should be merged when at least one of the following conditions is satisfied:

- 2 collaborators have reviewed and okayed the PR
- 1 collaborator has reviewed and okayed the PR and 36 hours have passed after the PR was submitted

2. Collaborators should squash and merge PRs with a commit message explaining the changes.

3. All PRs should add the author's name and email address to the authors file, if it isn't already present.

## Versioning

ts-jest must match the major version of jest. Matching the minor version is preferred. Matching the version patch is not required.

When merging PRs which fix bugs, it is preferable to increment the version patch version so that the changes can be published to NPM.

## Tests

All new features or bugfixes should be accompanied with a new test, to ensure that the change works as intended, and to make sure we don't inadvertently break it in the future through refactring

If you are simply refactoring code, it is not needed to add a test.

### How to add tests
- Tests are added by creating a new file in tests/__tests__
- A test usually consists of two parts
- A directory under tests/ that have some files that should result in a specific output when jest is passed through it
- A file under tests/__tests__ that uses the runJest command to run Jest on the specified directory, and makes asserts on the output of stdout and stderr
When asserting things on the output, it is common to both assert something about the exit code, and something about the output. Always assert on the output first, before asserting on the status code - as it leads to much nicer error messages when refactoring. (You get the full output text, rather than just '0 didn't equal 1')

### How to run tests
Tests are run through `yarn test`
Loading