Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit 142dfe4

Browse files
authored
Merge pull request #149 from JReinhold/doc_migration_to_2.5.0
added migration steps to v2.5.0
2 parents a32ac09 + de25bd7 commit 142dfe4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,26 @@ When you run `npm run build` the terminal will output the error, including the h
2121

2222
![CodeHighlight](https://cloud.githubusercontent.com/assets/175278/22310149/1ee66ccc-e346-11e6-83ff-e3a053701fb4.gif)
2323

24+
## Migration
25+
26+
In general, most upgrades won't require any migration steps to work, but if you experience problems after an upgrade, please file an issue, and we'll add it to the list of migration steps below.
27+
28+
### From `<2.5.0` to `>=2.5.0`
29+
30+
Version `2.5.0` introduces a new config file for jest, that is necessary for the tests to run. If you were previously running a version older than `v2.5.0` and upgraded to `v2.5.0` or newer, you need to manually add the new file, or else you'll get an error similar to this when trying to run your tests:
31+
32+
```javascript
33+
Test suite failed to run
34+
35+
{
36+
"messageText": "Cannot read file 'C:\\[project]\\tsconfig.test.json': ENOENT: no such file or directory, open 'C:\\[project]\\tsconfig.test.json'.",
37+
"category": 1,
38+
"code": 5012
39+
}
40+
```
41+
42+
To fix this, create a new file *in the root of the project* called `tsconfig.test.json`, and paste [the content of this file into it](https://raw.githubusercontent.com/wmonk/create-react-app-typescript/master/packages/react-scripts/template/tsconfig.test.json). Everything should work now. For more info, please see [this issue](https://github.com/wmonk/create-react-app-typescript/issues/141).
43+
2444
## Changelog
2545

2646
### 2.6.0

0 commit comments

Comments
 (0)