Open cnotv opened 1 year ago
@cnotv A couple of items more for the list
Ghost errors (yarn test:ci
vs yarn test
-> one showing errors the other doesn't):
jest tests/unit --clearCache
Problem with method not being called/reachable:
<button type="button" @click="someMethod" />
should be <button type="button" @click="someMethod()" />
. If you need to get the event details, pass the arg $event
like:
<button type="button" @click="someMethod($event)" />
This needs to be broken into smaller chunks.
Description
As outcome of several faced complexities, add a troubleshooting section within unit tests and Storybook section in the DevKit and extend the existing guidelines.
Context
Unit tests
data-testid
over classes as separation of concernsmapGetters('type-map', ['activeProducts']),
vue-select
example handled case)shalloMount()
$fetch
document.queryAll()
$el()
Storybook
@rancher/components
i18n
mandatory<nuxt-link>
integration (e.g.DetailTop
)Setup
rancher/icons
)Typescript
Generic