-
Notifications
You must be signed in to change notification settings - Fork 490
added migration steps to v2.5.0 #149
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,26 @@ 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. | ||
|
||
### 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). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we link to a commit version of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought about that to, however I think that linking to the master version is more future proof. Say we release a version eg. If we one day remove the config all together, maybe we should change the migration guide to say something like "From Thoughts? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah sounds good to me. Lets leave as is! |
||
|
||
## Changelog | ||
|
||
### 2.6.0 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wont -> won't
😄