Skip to content

Commit

Permalink
feat(frontend): add pinia testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogge committed Mar 14, 2024
1 parent 9cf9ff7 commit 0f47843
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
42 changes: 42 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
"devDependencies": {
"@eslint-community/eslint-plugin-eslint-comments": "^4.1.0",
"@intlify/eslint-plugin-vue-i18n": "^2.0.0",
"@pinia/testing": "^0.1.3",
"@storybook/addon-essentials": "^7.6.17",
"@storybook/addon-interactions": "^7.6.17",
"@storybook/addon-links": "^7.6.17",
Expand Down
5 changes: 2 additions & 3 deletions scripts/tests/plugin.pinia.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createTestingPinia } from '@pinia/testing'
import { config } from '@vue/test-utils'

import pinia from '#plugins/pinia'

config.global.plugins.push(pinia)
config.global.plugins.push(createTestingPinia())

0 comments on commit 0f47843

Please sign in to comment.