remove fixture for task and steps
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
"dev": "vite",
|
||||
"build": "run-p type-check build-only",
|
||||
"preview": "vite preview",
|
||||
"test": "pnpm lint && pnpm type-check && pnpm test:unit",
|
||||
"test": "pnpm lint && pnpm type-check && pnpm test:unit --ui",
|
||||
"test:unit": "vitest",
|
||||
"build-only": "vite build",
|
||||
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
|
||||
@@ -29,6 +29,8 @@
|
||||
"@types/jsdom": "^21.1.1",
|
||||
"@types/node": "^18.14.2",
|
||||
"@vitejs/plugin-vue": "^4.1.0",
|
||||
"@vitest/browser": "^0.30.1",
|
||||
"@vitest/ui": "^0.30.1",
|
||||
"@vue/eslint-config-prettier": "^7.1.0",
|
||||
"@vue/eslint-config-typescript": "^11.0.2",
|
||||
"@vue/test-utils": "^2.3.2",
|
||||
@@ -42,6 +44,7 @@
|
||||
"typescript": "~4.8.4",
|
||||
"vite": "^4.2.1",
|
||||
"vitest": "^0.29.8",
|
||||
"vue-tsc": "^1.2.0"
|
||||
"vue-tsc": "^1.2.0",
|
||||
"webdriverio": "^8.8.2"
|
||||
}
|
||||
}
|
||||
1557
pnpm-lock.yaml
generated
1557
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import { createUuid } from '@/shared/create-uuid'
|
||||
import { faker } from '@faker-js/faker'
|
||||
import { computed, ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { createStepFixture } from '../models/step.fixture'
|
||||
import type { Stepable } from '../interfaces/stepable'
|
||||
import { Task } from '../models/task'
|
||||
import { useTaskStore } from '../stores/useTask.store'
|
||||
import StepInput from './StepInput.vue'
|
||||
@@ -13,13 +12,11 @@ const router = useRouter()
|
||||
|
||||
const id = createUuid()
|
||||
|
||||
const title = ref(faker.animal.bird())
|
||||
const link = ref(faker.internet.url())
|
||||
const steps = ref(
|
||||
Array.from({ length: Math.floor(Math.random() * 10) }, () =>
|
||||
createStepFixture()
|
||||
)
|
||||
)
|
||||
const title = ref('')
|
||||
const link = ref('')
|
||||
|
||||
const steps = ref<Stepable[]>([])
|
||||
|
||||
const totalEstimation = computed(() =>
|
||||
steps.value.map((step) => step.estimation).reduce((a, b) => a + b, 0)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user