Skip to content

Commit

Permalink
try to see tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marinatea committed Mar 25, 2024
1 parent dba723d commit f555df9
Show file tree
Hide file tree
Showing 13 changed files with 362 additions and 123 deletions.
14 changes: 13 additions & 1 deletion .lh/README.md.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"activeCommit": 0,
"commits": [
{
"activePatchIndex": 1,
"activePatchIndex": 4,
"patches": [
{
"date": 1711188626014,
Expand All @@ -12,6 +12,18 @@
{
"date": 1711189090540,
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -4,9 +4,9 @@\n \n This task is similar to [Static List of TODOs](https://github.com/mate-academy/react_static-list-of-todos#react-static-list-of-todos), but you should do everything yourself:\n \n <!-- - don't change classes in the given markup (tests use them); -->\n-- create all required types in `./src/types/`;\n+<!-- - create all required types in `./src/types/`; -->\n - prepare `posts` by adding a `user` and `comments` to each `post` (each comment has a `postId`);\n - split the `App` into components based on given CSS blocks;\n - styles from `App.scss` should be moved to separate files, as well. E.g.: `PostList.scss`;\n - `List` components should take an array of corresponding objects and render one `Info` component per object;\n"
},
{
"date": 1711370233731,
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -3,10 +3,10 @@\n > [React + Typescript cheat sheet](https://mate-academy.github.io/fe-program/js/extra/react-typescript)\n \n This task is similar to [Static List of TODOs](https://github.com/mate-academy/react_static-list-of-todos#react-static-list-of-todos), but you should do everything yourself:\n \n-<!-- - don't change classes in the given markup (tests use them); -->\n-<!-- - create all required types in `./src/types/`; -->\n+- don't change classes in the given markup (tests use them); -->\n+<!-- - create all required types in `./src/types/`;\n - prepare `posts` by adding a `user` and `comments` to each `post` (each comment has a `postId`);\n - split the `App` into components based on given CSS blocks;\n - styles from `App.scss` should be moved to separate files, as well. E.g.: `PostList.scss`;\n - `List` components should take an array of corresponding objects and render one `Info` component per object;\n"
},
{
"date": 1711370239982,
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -4,9 +4,9 @@\n \n This task is similar to [Static List of TODOs](https://github.com/mate-academy/react_static-list-of-todos#react-static-list-of-todos), but you should do everything yourself:\n \n - don't change classes in the given markup (tests use them); -->\n-<!-- - create all required types in `./src/types/`;\n+- create all required types in `./src/types/`;\n - prepare `posts` by adding a `user` and `comments` to each `post` (each comment has a `postId`);\n - split the `App` into components based on given CSS blocks;\n - styles from `App.scss` should be moved to separate files, as well. E.g.: `PostList.scss`;\n - `List` components should take an array of corresponding objects and render one `Info` component per object;\n"
},
{
"date": 1711384158219,
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -16,5 +16,5 @@\n - Install Prettier Extention and use this [VSCode settings](https://mate-academy.github.io/fe-program/tools/vscode/settings.json) to enable format on save.\n - Implement a solution following the [React task guideline](https://github.com/mate-academy/react_task-guideline#react-tasks-guideline).\n - Use the [React TypeScript cheat sheet](https://mate-academy.github.io/fe-program/js/extra/react-typescript).\n - Open one more terminal and run tests with `npm test` to ensure your solution is correct.\n-- Replace `<your_account>` with your Github username in the [DEMO LINK](https://<your_account>.github.io/react_static-list-of-posts/) and add it to the PR description.\n+- Replace `<your_account>` with your Github username in the [DEMO LINK](https://marinatea.github.io/react_static-list-of-posts/) and add it to the PR description.\n"
}
],
"date": 1711188626014,
Expand Down
30 changes: 29 additions & 1 deletion .lh/src/components/CommentList/index.ts.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,39 @@
"activeCommit": 0,
"commits": [
{
"activePatchIndex": 0,
"activePatchIndex": 7,
"patches": [
{
"date": 1711189841009,
"content": "Index: \n===================================================================\n--- \n+++ \n"
},
{
"date": 1711370428353,
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -1,9 +1,1 @@\n export * from './CommentList';\n-\n-export interface Comment {\n- postId: number;\n- id: number;\n- name: string;\n- email: string;\n- body: string;\n-}\n"
},
{
"date": 1711370463942,
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -1,1 +1,2 @@\n export * from './CommentList';\n+import\n"
},
{
"date": 1711370470158,
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -1,2 +1,3 @@\n export * from './CommentList';\n import\n+o{}\n"
},
{
"date": 1711370475733,
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -0,0 +1,2 @@\n+export * from './CommentList';\n+import { Comment}\n"
},
{
"date": 1711370485949,
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -0,0 +1,2 @@\n+export * from './CommentList';\n+import { Comment } from '../CommentInfo/';\n"
},
{
"date": 1711370491518,
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -1,2 +1,3 @@\n export * from './CommentList';\n import { Comment } from '../CommentInfo/index';\n+\n"
},
{
"date": 1711370497280,
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -0,0 +1,4 @@\n+export * from './CommentList';\n+import { Comment } from '../CommentInfo/index';\n+\n+expo\n"
}
],
"date": 1711189841009,
Expand Down
Loading

0 comments on commit f555df9

Please sign in to comment.