-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
# Todo list (React + typeScript) | ||
|
||
Для удобства каждый шаг сделан отдельной веткой: | ||
Перед началом работы необходимо установить все зависимости: | ||
``` | ||
npm install | ||
``` | ||
|
||
##### Шаг 1. | ||
|
||
Запустить проект: | ||
``` | ||
git checkout step-1 | ||
npm start | ||
``` | ||
Добавление компонентов NewTask и TasksList. | ||
|
||
|
||
Итоговый результат: | ||
``` | ||
git checkout ready | ||
``` | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<App /> hasn\`t got changes 1`] = ` | ||
<Fragment> | ||
<ContextProvider | ||
value={ | ||
Object { | ||
"changeState": [Function], | ||
"state": Object { | ||
"newTask": "", | ||
"tasks": Array [], | ||
}, | ||
} | ||
} | ||
> | ||
<NewTask /> | ||
<TasksList /> | ||
</ContextProvider> | ||
</Fragment> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<NewTask /> renders the component without changes 1`] = `<NewTask />`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<TasksList /> renders the component without changes 1`] = ` | ||
<ContextProvider | ||
value={ | ||
Object { | ||
"state": Object { | ||
"newTask": "", | ||
"tasks": Array [ | ||
Object { | ||
"isDone": false, | ||
"name": "test", | ||
}, | ||
Object { | ||
"isDone": false, | ||
"name": "test2", | ||
}, | ||
], | ||
}, | ||
} | ||
} | ||
> | ||
<TasksList /> | ||
</ContextProvider> | ||
`; |