refactor: migrate to nuxt

This commit is contained in:
YunYouJun
2023-07-30 03:08:42 +08:00
parent c23f39e8c0
commit 0dfec1831b
90 changed files with 7864 additions and 3962 deletions

View File

@@ -1,11 +1,10 @@
import { beforeEach, describe, expect, it } from 'vitest'
import { createPinia, setActivePinia } from 'pinia'
import { useRecipe } from '~/composables/recipe'
import type { Recipe } from '~/types'
import { useRecipe } from 'composables/recipe'
import type { Recipes } from '~/types'
import recipeData from '~/data/recipe.json'
import { useRecipeStore } from '~/store/recipe'
const recipe = ref<Recipe>(recipeData as Recipe)
const recipe = ref<Recipes>(recipeData as Recipes)
describe('recipe interaction', () => {
beforeEach(() => {