vue3-core/packages/runtime-core/__tests__
Cédric Exbrayat 04553786e4
fix(runtime-core): do not throw on unknown directives (#6671)
fix #6340

This commit improves the case when a directive is not found in a template.
As `resolveDirective` returns `undefined`, some code was failing with the following error:

```
TypeError: Cannot read properties of undefined (reading 'deep')
```
2022-11-07 21:49:49 -05:00
..
components fix(keep-alive): fix unmounting late-included components 2022-05-12 11:52:54 +08:00
helpers test(slots): ensure createSlots helper work with ssr slots (#6660) 2022-09-27 22:36:11 -04:00
apiAsyncComponent.spec.ts fix(keep-alive): invoke initial activated hook for async components 2022-05-12 11:29:26 +08:00
apiCreateApp.spec.ts chore: warn when mounting different apps on the same host element (#5573) 2022-05-12 21:09:18 -04:00
apiExpose.spec.ts fix(runtime-core): `in` operator returning `false` for built-in instance properties in `exposeProxy` (#6138) 2022-10-26 05:54:10 -04:00
apiInject.spec.ts fix(runtime-core): bind default function of inject to instance (#3925) 2021-06-09 12:02:05 -04:00
apiLifecycle.spec.ts fix(runtime-core): Lifecycle hooks should support callbacks shared by reference (#6687) 2022-09-26 22:18:22 -04:00
apiOptions.spec.ts chore: format 2022-10-03 15:30:43 +08:00
apiSetupContext.spec.ts chore: remove duplicated test + add missing prop decl 2022-05-28 16:17:19 +08:00
apiSetupHelpers.spec.ts feat(compiler-sfc): `<script setup>` defineProps destructure transform (#4690) 2021-09-27 14:24:21 -04:00
apiWatch.spec.ts fix(runtime-core): watching multiple values - handle `undefined` as initial values (fix: #5032) (#5033) 2022-10-20 21:45:05 +02:00
componentEmits.spec.ts ci: check prettier format (#6830) 2022-10-28 09:39:34 +08:00
componentProps.spec.ts fix(runtime-core): ensure props definition objects are not mutated during props normalization (close: #6915) (#6916) 2022-10-22 11:20:02 +02:00
componentPublicInstance.spec.ts chore: add no-debugger eslint rule (#5906) 2022-05-12 19:10:00 -04:00
componentSlots.spec.ts wip: more compat progress 2021-04-21 15:09:18 -04:00
directives.spec.ts fix(runtime-core): do not throw on unknown directives (#6671) 2022-11-07 21:49:49 -05:00
errorHandling.spec.ts chore: type [ci skip] 2022-05-09 22:51:51 -04:00
h.spec.ts feat(runtime-core): support variadic children in `h` for simple JSX compat 2020-08-21 21:54:33 -04:00
hmr.spec.ts fix(hmr): fix hmr for components with no active instance yet 2021-10-08 12:39:24 -04:00
hydration.spec.ts fix(ssr): fix hydration mismatch when entire multi-root template is stringified 2022-09-28 09:33:17 +08:00
misc.spec.ts refactor(reactivity): use more efficient reactive checks 2020-05-02 16:58:17 -04:00
rendererAttrsFallthrough.spec.ts fix(runtime-core): improve dedupe listeners when attr fallthrough (#4912) 2021-11-14 22:20:38 -05:00
rendererChildren.spec.ts chore: run updated prettier 2021-07-19 18:24:18 -04:00
rendererComponent.spec.ts fix(runtime-core): fix child component double update on props change 2021-08-17 10:57:28 -04:00
rendererElement.spec.ts test(runtime-core/renderer): tests for rendering elements (#699) 2020-03-09 17:08:05 -04:00
rendererFragment.spec.ts fix: inherit `el` for static nodes inside keyed `template` fragment (#2089) 2020-09-14 16:02:29 -04:00
rendererOptimizedMode.spec.ts chore: type [ci skip] 2022-05-09 22:51:51 -04:00
rendererTemplateRef.spec.ts fix(runtime-core): fix v-for ref reactivity behavior difference between prod and dev (#6714) 2022-10-14 05:23:01 -04:00
scheduler.spec.ts fix(runtime-core): avoid double firing when mounting inside a watcher callback 2022-09-08 09:59:51 +08:00
scopeId.spec.ts chore: run updated prettier 2021-07-19 18:24:18 -04:00
vnode.spec.ts fix(runtime-core): ensure that errors in slot function execution do not affect block tracking (#5670) 2022-10-14 04:08:32 -04:00
vnodeHooks.spec.ts test(runtime-core): tests for vnode hooks 2020-03-18 16:35:04 -04:00