Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve #667: Cover store/plugins.js with tests #719

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

SazukinPavel
Copy link
Contributor

No description provided.

@SazukinPavel SazukinPavel self-assigned this Feb 14, 2024
@SazukinPavel SazukinPavel linked an issue Feb 14, 2024 that may be closed by this pull request
@SazukinPavel SazukinPavel requested a review from a team February 14, 2024 10:04
Copy link
Member

@slntopp slntopp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are failing with:

 FAIL  tests/store/plugins.test.js [ tests/store/plugins.test.js ]
Error: [🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
This will fail in production.
 ❯ Module.useStore node_modules/.pnpm/[email protected][email protected]/node_modules/pinia/dist/pinia.mjs:1709:19
 ❯ src/store/namespaces.js:12:18
     10| import { createConnectTransport } from "@connectrpc/connect-web";
     11| 
     12| const appStore = useAppStore();
       |                  ^
     13| 
     14| export const useNSStore = defineStore("namespaces", {
 ❯ src/store/plugins.js:2:31

PLEASE RUN TESTS BEFORE SUBMITTING PR

Copy link

Coverage Report for ./console

Status Category Percentage Covered / Total
🔵 Lines 9.22% 725 / 7857
🔵 Statements 9.22% 725 / 7857
🔵 Functions 13.22% 16 / 121
🔵 Branches 41.28% 45 / 109
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
console/src/store/plugins.js 13.07% 100% 100% 13.07% 14-76, 80-129
Generated in workflow #931

@SazukinPavel SazukinPavel merged commit 1d376ab into dev-store-tests Feb 20, 2024
3 of 4 checks passed
@SazukinPavel SazukinPavel deleted the dev-cover-store-plugin-with-tests branch February 20, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cover store/plugins.js with tests
2 participants