├── .editorconfig ├── .env.example ├── .gitignore ├── .prettierrc.json ├── .storybook ├── main.ts ├── preview.tsx └── storybook.css ├── .vscode └── settings.json ├── ANOTACOES.md ├── AULAS.md ├── FINAL.md ├── README.md ├── STORYBOOK.md ├── drizzle.config.ts ├── eslint.config.mjs ├── next.config.ts ├── package.json ├── playwright.config.ts ├── postcss.config.mjs ├── public ├── file.svg ├── globe.svg ├── next.svg ├── vercel.svg └── window.svg ├── src ├── app │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── components │ ├── Button │ │ ├── Button.spec.tsx │ │ ├── Button.stories.tsx │ │ └── index.tsx │ ├── InputText │ │ ├── InputText.spec.tsx │ │ ├── InputText.stories.tsx │ │ └── index.tsx │ ├── TodoContainer │ │ ├── TodoContainer.test.tsx │ │ └── index.tsx │ ├── TodoForm │ │ ├── TodoForm.stories.tsx │ │ ├── TodoForm.test.tsx │ │ └── index.tsx │ └── TodoList │ │ ├── TodoList.stories.tsx │ │ ├── TodoList.test.tsx │ │ └── index.tsx ├── core │ ├── __tests__ │ │ ├── mocks │ │ │ ├── todo-action-story.ts │ │ │ └── todos.ts │ │ └── utils │ │ │ ├── make-test-todo-mocks.ts │ │ │ └── make-test-todo-repository.ts │ └── todo │ │ ├── actions │ │ ├── create-todo.action.spec.ts │ │ ├── create-todo.action.ts │ │ ├── delete-todo.action.spec.ts │ │ ├── delete-todo.action.ts │ │ └── todo.action.types.ts │ │ ├── factories │ │ ├── make-new-todo.spec.ts │ │ ├── make-new-todo.ts │ │ ├── make-validated-todo.spec.ts │ │ └── make-validated-todo.ts │ │ ├── repositories │ │ ├── default.repository.ts │ │ ├── drizzle-todo.repository.test.ts │ │ ├── drizzle-todo.repository.ts │ │ └── todo.contract.repository.ts │ │ ├── schemas │ │ ├── drizzle-todo-table.schema.ts │ │ ├── todo.contract.ts │ │ ├── validate-todo-description.spec.ts │ │ └── validate-todo-description.ts │ │ └── usecases │ │ ├── create-todo.usecase.test.ts │ │ ├── create-todo.usecase.ts │ │ ├── delete-todo.usecase.test.ts │ │ └── delete-todo.usecase.ts ├── db │ ├── drizzle │ │ └── migrations │ │ │ ├── 0000_violet_slayback.sql │ │ │ └── meta │ │ │ ├── 0000_snapshot.json │ │ │ └── _journal.json │ └── index.ts ├── env │ └── configs.ts └── utils │ ├── dev-only-delay.ts │ ├── sanitize-str.spec.ts │ └── sanitize-str.ts ├── tests-examples └── demo-todo-app.spec.ts ├── tests └── home.e2e.ts ├── tsconfig.json ├── vitest.config.ts ├── vitest.global.setup.ts └── vitest.setup.ts /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/.editorconfig -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /.storybook/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/.storybook/main.ts -------------------------------------------------------------------------------- /.storybook/preview.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/.storybook/preview.tsx -------------------------------------------------------------------------------- /.storybook/storybook.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/.storybook/storybook.css -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /ANOTACOES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/ANOTACOES.md -------------------------------------------------------------------------------- /AULAS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/AULAS.md -------------------------------------------------------------------------------- /FINAL.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/FINAL.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/README.md -------------------------------------------------------------------------------- /STORYBOOK.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/STORYBOOK.md -------------------------------------------------------------------------------- /drizzle.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/drizzle.config.ts -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/eslint.config.mjs -------------------------------------------------------------------------------- /next.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/next.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/package.json -------------------------------------------------------------------------------- /playwright.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/playwright.config.ts -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/postcss.config.mjs -------------------------------------------------------------------------------- /public/file.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/public/file.svg -------------------------------------------------------------------------------- /public/globe.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/public/globe.svg -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /public/window.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/public/window.svg -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- 1 | @import 'tailwindcss'; 2 | -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/components/Button/Button.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/components/Button/Button.spec.tsx -------------------------------------------------------------------------------- /src/components/Button/Button.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/components/Button/Button.stories.tsx -------------------------------------------------------------------------------- /src/components/Button/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/components/Button/index.tsx -------------------------------------------------------------------------------- /src/components/InputText/InputText.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/components/InputText/InputText.spec.tsx -------------------------------------------------------------------------------- /src/components/InputText/InputText.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/components/InputText/InputText.stories.tsx -------------------------------------------------------------------------------- /src/components/InputText/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/components/InputText/index.tsx -------------------------------------------------------------------------------- /src/components/TodoContainer/TodoContainer.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/components/TodoContainer/TodoContainer.test.tsx -------------------------------------------------------------------------------- /src/components/TodoContainer/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/components/TodoContainer/index.tsx -------------------------------------------------------------------------------- /src/components/TodoForm/TodoForm.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/components/TodoForm/TodoForm.stories.tsx -------------------------------------------------------------------------------- /src/components/TodoForm/TodoForm.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/components/TodoForm/TodoForm.test.tsx -------------------------------------------------------------------------------- /src/components/TodoForm/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/components/TodoForm/index.tsx -------------------------------------------------------------------------------- /src/components/TodoList/TodoList.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/components/TodoList/TodoList.stories.tsx -------------------------------------------------------------------------------- /src/components/TodoList/TodoList.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/components/TodoList/TodoList.test.tsx -------------------------------------------------------------------------------- /src/components/TodoList/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/components/TodoList/index.tsx -------------------------------------------------------------------------------- /src/core/__tests__/mocks/todo-action-story.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/__tests__/mocks/todo-action-story.ts -------------------------------------------------------------------------------- /src/core/__tests__/mocks/todos.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/__tests__/mocks/todos.ts -------------------------------------------------------------------------------- /src/core/__tests__/utils/make-test-todo-mocks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/__tests__/utils/make-test-todo-mocks.ts -------------------------------------------------------------------------------- /src/core/__tests__/utils/make-test-todo-repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/__tests__/utils/make-test-todo-repository.ts -------------------------------------------------------------------------------- /src/core/todo/actions/create-todo.action.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/actions/create-todo.action.spec.ts -------------------------------------------------------------------------------- /src/core/todo/actions/create-todo.action.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/actions/create-todo.action.ts -------------------------------------------------------------------------------- /src/core/todo/actions/delete-todo.action.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/actions/delete-todo.action.spec.ts -------------------------------------------------------------------------------- /src/core/todo/actions/delete-todo.action.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/actions/delete-todo.action.ts -------------------------------------------------------------------------------- /src/core/todo/actions/todo.action.types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/actions/todo.action.types.ts -------------------------------------------------------------------------------- /src/core/todo/factories/make-new-todo.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/factories/make-new-todo.spec.ts -------------------------------------------------------------------------------- /src/core/todo/factories/make-new-todo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/factories/make-new-todo.ts -------------------------------------------------------------------------------- /src/core/todo/factories/make-validated-todo.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/factories/make-validated-todo.spec.ts -------------------------------------------------------------------------------- /src/core/todo/factories/make-validated-todo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/factories/make-validated-todo.ts -------------------------------------------------------------------------------- /src/core/todo/repositories/default.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/repositories/default.repository.ts -------------------------------------------------------------------------------- /src/core/todo/repositories/drizzle-todo.repository.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/repositories/drizzle-todo.repository.test.ts -------------------------------------------------------------------------------- /src/core/todo/repositories/drizzle-todo.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/repositories/drizzle-todo.repository.ts -------------------------------------------------------------------------------- /src/core/todo/repositories/todo.contract.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/repositories/todo.contract.repository.ts -------------------------------------------------------------------------------- /src/core/todo/schemas/drizzle-todo-table.schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/schemas/drizzle-todo-table.schema.ts -------------------------------------------------------------------------------- /src/core/todo/schemas/todo.contract.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/schemas/todo.contract.ts -------------------------------------------------------------------------------- /src/core/todo/schemas/validate-todo-description.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/schemas/validate-todo-description.spec.ts -------------------------------------------------------------------------------- /src/core/todo/schemas/validate-todo-description.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/schemas/validate-todo-description.ts -------------------------------------------------------------------------------- /src/core/todo/usecases/create-todo.usecase.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/usecases/create-todo.usecase.test.ts -------------------------------------------------------------------------------- /src/core/todo/usecases/create-todo.usecase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/usecases/create-todo.usecase.ts -------------------------------------------------------------------------------- /src/core/todo/usecases/delete-todo.usecase.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/usecases/delete-todo.usecase.test.ts -------------------------------------------------------------------------------- /src/core/todo/usecases/delete-todo.usecase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/core/todo/usecases/delete-todo.usecase.ts -------------------------------------------------------------------------------- /src/db/drizzle/migrations/0000_violet_slayback.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/db/drizzle/migrations/0000_violet_slayback.sql -------------------------------------------------------------------------------- /src/db/drizzle/migrations/meta/0000_snapshot.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/db/drizzle/migrations/meta/0000_snapshot.json -------------------------------------------------------------------------------- /src/db/drizzle/migrations/meta/_journal.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/db/drizzle/migrations/meta/_journal.json -------------------------------------------------------------------------------- /src/db/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/db/index.ts -------------------------------------------------------------------------------- /src/env/configs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/env/configs.ts -------------------------------------------------------------------------------- /src/utils/dev-only-delay.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/utils/dev-only-delay.ts -------------------------------------------------------------------------------- /src/utils/sanitize-str.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/utils/sanitize-str.spec.ts -------------------------------------------------------------------------------- /src/utils/sanitize-str.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/src/utils/sanitize-str.ts -------------------------------------------------------------------------------- /tests-examples/demo-todo-app.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/tests-examples/demo-todo-app.spec.ts -------------------------------------------------------------------------------- /tests/home.e2e.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/tests/home.e2e.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/vitest.config.ts -------------------------------------------------------------------------------- /vitest.global.setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/vitest.global.setup.ts -------------------------------------------------------------------------------- /vitest.setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luizomf/tests-nextjs-vitest-playwright/HEAD/vitest.setup.ts --------------------------------------------------------------------------------