Skip to content

Commit 1012733

Browse files
fix: update task title in form submission and add description field
feat: configure Vite with Tailwind CSS plugin refactor: rename project from 'codespaces-react' to 'task-dashboard'
1 parent f653987 commit 1012733

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"build:clean": "VITE_ENABLE_DATA_HYDRATION=false vite build",
2828
"preview": "vite preview",
2929
"preview:hydrated": "VITE_ENABLE_DATA_HYDRATION=true vite preview",
30-
"test": "vitest",
30+
"test": "vitest run",
3131
"build:css": "tailwindcss build src/index.css -o src/output.css",
3232
"watch:css": "tailwindcss -i src/index.css -o src/output.css --watch"
3333
},

src/features/tasks/components/GlobalTaskForm.test.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ describe('GlobalTaskForm Component', () => {
136136
fireEvent.click(submitButton);
137137

138138
expect(mockAddTask).toHaveBeenCalledWith({
139-
text: 'Submit Test Task',
139+
title: 'Submit Test Task',
140+
description: "",
140141
isCompleted: false,
141142
tags: ['test-tag']
142143
});

vite.config.js renamed to vite.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export default defineConfig({
99
react(),
1010
tailwindcss(), // Add the Tailwind CSS Vite plugin
1111
],
12+
ssr: {
13+
noExternal: ['@tailwindcss/vite']
14+
},
1215
test: {
1316
globals: true,
1417
environment: 'jsdom',

0 commit comments

Comments
 (0)