-
Notifications
You must be signed in to change notification settings - Fork 158
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
[tests-only] Add unit tests for the text editor #8002
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like, can we add this to stable instead?
98cc316
to
6f7cb99
Compare
const defaultMocks = { ...defaultComponentMocks() } | ||
const storeOptions = { ...defaultStoreMockOptions } | ||
const localVue = defaultLocalVue() | ||
const store = createStore(Vuex.Store, storeOptions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of scope for this PR, but:
I don't like that you use options from test helpers but have to add vuex-extensions
to the package dependencies, I would like to see this handled in web-test-helpers
completely.
We should really throw some time at unit tests at some point, unify the setup and clean up stuff like this.
import { GetFileContentsResponse } from 'web-client/src/webdav/getFileContents' | ||
import { AppConfigObject, FileContext, useAppDefaults } from 'web-pkg/src' | ||
|
||
export const useAppDefaultsMock = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still amazed by the mocks with the partial type for options 😎
30817cc
to
5c52f8d
Compare
SonarCloud Quality Gate failed. |
This also includes a mock for the
useAppDefaults
composable.Types of changes