From 14d0ec47959f87229ec871ab1a08186fd7ba774f Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Sat, 26 Aug 2017 08:02:00 +0200 Subject: [PATCH 1/2] added migration steps to v2.5.0 --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 9131431d9e..899fee4576 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,26 @@ When you run `npm run build` the terminal will output the error, including the h ![CodeHighlight](https://cloud.githubusercontent.com/assets/175278/22310149/1ee66ccc-e346-11e6-83ff-e3a053701fb4.gif) +## Migration + +In general, most upgrades wont 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. + +### From `<2.5.0` to `>=2.5.0` + +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: + +```javascript +Test suite failed to run + +{ + "messageText": "Cannot read file 'C:\\[project]\\tsconfig.test.json': ENOENT: no such file or directory, open 'C:\\[project]\\tsconfig.test.json'.", + "category": 1, + "code": 5012 +} +``` + +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). + ## Changelog ### 2.6.0 From de25bd7e6ce3018982e5240e611468a0e5b0d885 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Sun, 27 Aug 2017 11:40:54 +0200 Subject: [PATCH 2/2] fixed typo in migration --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 899fee4576..7cfcef114b 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ When you run `npm run build` the terminal will output the error, including the h ## Migration -In general, most upgrades wont 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. +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. ### From `<2.5.0` to `>=2.5.0`