Skip to content
Open

Develop #1302

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/indent': 'off',
'@typescript-eslint/ban-types': ['error', {
extendDefaults: true,
types: {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ Implement a simple [TODO app](https://mate-academy.github.io/react_todo-app/) th
- Implement a solution following the [React task guidelines](https://github.com/mate-academy/react_task-guideline#react-tasks-guideline).
- Use the [React TypeScript cheat sheet](https://mate-academy.github.io/fe-program/js/extra/react-typescript).
- Open another terminal and run tests with `npm test` to ensure your solution is correct.
- Replace `<your_account>` with your GitHub username in the [DEMO LINK](https://<your_account>.github.io/react_todo-app/) and add it to the PR description.
- Replace `<your_account>` with your GitHub username in the [DEMO LINK](https://Bohdan259.github.io/react_todo-app/) and add it to the PR description.
6 changes: 5 additions & 1 deletion cypress/integration/page.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ const page = {
todosCounter: () => cy.byDataCy('TodosCounter'),
clearCompletedButton: () => cy.byDataCy('ClearCompletedButton'),
footer: () => cy.byDataCy('Footer'),
localStorage: () => cy.getAllLocalStorage().its('http://localhost:3001'),
localStorage: () =>
cy.getAllLocalStorage().then(storage => {
const domain = Object.keys(storage)[0];
return storage[domain];
}),
data: () => page.localStorage().then(({ todos = '[]' }) => JSON.parse(todos)),

visit: (initialTodos) => {
Expand Down
Loading
Loading