<commit_before><commit_msg>Create the initial README<commit_after># typescript-jest

**Note:** This is currently just a hack and most likely not suitable for all setups. 

This repo uses code from the [source-map-support](https://github.com/evanw/node-source-map-support) package to show errors with mapped locations.

To use this in its current form, clone this repo anywhere on your disk. Run `npm install` in it.
Create a symlink in the `node_modules` directory of your project to this directory:

```sh
ln -s path-to-typescript-jest
```

such that you effectively have a `node_modules/typescript-jest` directory.

Modify your project's `package.json` so that the `jest` section looks something like:

```json
{
  "jest": {
    "scriptPreprocessor": "<rootDir>/node_modules/typescript-jest/preprocessor.js",
    "testFileExtensions": [
      "ts",
      "tsx",
      "js"
    ],
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js"
    ],
    "unmockedModulePathPatterns": [
      "<rootDir>/node_modules/react/",
      "<rootDir>/node_modules/react-dom/",
      "<rootDir>/node_modules/react-addons-test-utils/",
      "<rootDir>/node_modules/typescript-jest/"
    ]
  }
}
```

This should allow you to write Jest tests in Typescript and be able to locate errors without any additional gymnastics.

If you have any suggestions/pull requests to turn this into a useful package, just open an issue and I'll be happy to work with you to improve this.
{'fraction_non_alphanumeric': 0.1092896174863388, 'fraction_numerical': 0.0, 'mean_word_length': 3.6214511041009465, 'pattern_counts': {'":': 5, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4342705', 'n_tokens_mistral': 448, 'n_tokens_neox': 435, 'n_words': 155}