fix: improve unmount delay logic for layout animations #152
Annotations
7 errors
Test
Process completed with exit code 1.
|
src/components/lazy-motion/__tests__/lazy.test.tsx > lazy feature loading > animates after async loading:
packages/motion/src/components/lazy-motion/__tests__/lazy.test.tsx#L188
AssertionError: promise rejected "TypeError: Cannot read properties of null…" instead of resolving
❯ src/components/lazy-motion/__tests__/lazy.test.tsx:188:27
Caused by: TypeError: Cannot read properties of null (reading '$el')
❯ VueWrapper.get ../../node_modules/.pnpm/@VUE+test-utils@2.4.6/node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:7683:28
❯ Proxy.render ../../node_modules/.pnpm/@testing-library+vue@8.1.0_@vue+compiler-sfc@3.5.21_vue@3.5.17_typescript@5.5.4_/node_modules/@testing-library/vue/dist/render.js:41:22
❯ src/components/lazy-motion/__tests__/lazy.test.tsx:185:23
❯ src/components/lazy-motion/__tests__/lazy.test.tsx:166:21
|
src/components/lazy-motion/__tests__/lazy.test.tsx > lazy feature loading > doesn't throw without strict mode:
packages/motion/src/components/lazy-motion/__tests__/lazy.test.tsx#L136
AssertionError: promise rejected "TypeError: Cannot read properties of null…" instead of resolving
❯ src/components/lazy-motion/__tests__/lazy.test.tsx:136:27
Caused by: TypeError: Cannot read properties of null (reading '$el')
❯ VueWrapper.get ../../node_modules/.pnpm/@VUE+test-utils@2.4.6/node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:7683:28
❯ Proxy.render ../../node_modules/.pnpm/@testing-library+vue@8.1.0_@vue+compiler-sfc@3.5.21_vue@3.5.17_typescript@5.5.4_/node_modules/@testing-library/vue/dist/render.js:41:22
❯ src/components/lazy-motion/__tests__/lazy.test.tsx:133:23
❯ src/components/lazy-motion/__tests__/lazy.test.tsx:114:21
|
src/components/lazy-motion/__tests__/lazy.test.tsx > lazy feature loading > supports nested feature sets:
packages/motion/src/components/lazy-motion/__tests__/lazy.test.tsx#L110
AssertionError: promise rejected "TypeError: Cannot read properties of null…" instead of resolving
❯ src/components/lazy-motion/__tests__/lazy.test.tsx:110:27
Caused by: TypeError: Cannot read properties of null (reading '$el')
❯ VueWrapper.get ../../node_modules/.pnpm/@VUE+test-utils@2.4.6/node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:7683:28
❯ Proxy.render ../../node_modules/.pnpm/@testing-library+vue@8.1.0_@vue+compiler-sfc@3.5.21_vue@3.5.17_typescript@5.5.4_/node_modules/@testing-library/vue/dist/render.js:41:22
❯ src/components/lazy-motion/__tests__/lazy.test.tsx:107:23
❯ src/components/lazy-motion/__tests__/lazy.test.tsx:88:21
|
src/components/lazy-motion/__tests__/lazy.test.tsx > lazy feature loading > does animate with synchronously-loaded domMax:
packages/motion/src/components/lazy-motion/__tests__/lazy.test.tsx#L84
AssertionError: promise rejected "TypeError: Cannot read properties of null…" instead of resolving
❯ src/components/lazy-motion/__tests__/lazy.test.tsx:84:27
Caused by: TypeError: Cannot read properties of null (reading '$el')
❯ VueWrapper.get ../../node_modules/.pnpm/@VUE+test-utils@2.4.6/node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:7683:28
❯ Proxy.render ../../node_modules/.pnpm/@testing-library+vue@8.1.0_@vue+compiler-sfc@3.5.21_vue@3.5.17_typescript@5.5.4_/node_modules/@testing-library/vue/dist/render.js:41:22
❯ src/components/lazy-motion/__tests__/lazy.test.tsx:81:23
❯ src/components/lazy-motion/__tests__/lazy.test.tsx:62:21
|
src/components/lazy-motion/__tests__/lazy.test.tsx > lazy feature loading > does animate with synchronously-loaded domAnimation:
packages/motion/src/components/lazy-motion/__tests__/lazy.test.tsx#L58
AssertionError: promise rejected "TypeError: Cannot read properties of null…" instead of resolving
❯ src/components/lazy-motion/__tests__/lazy.test.tsx:58:27
Caused by: TypeError: Cannot read properties of null (reading '$el')
❯ VueWrapper.get ../../node_modules/.pnpm/@VUE+test-utils@2.4.6/node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:7683:28
❯ Proxy.render ../../node_modules/.pnpm/@testing-library+vue@8.1.0_@vue+compiler-sfc@3.5.21_vue@3.5.17_typescript@5.5.4_/node_modules/@testing-library/vue/dist/render.js:41:22
❯ src/components/lazy-motion/__tests__/lazy.test.tsx:54:23
❯ src/components/lazy-motion/__tests__/lazy.test.tsx:35:21
|
src/components/lazy-motion/__tests__/lazy.test.tsx > lazy feature loading > doesn't animate without loaded features:
packages/motion/src/state/motion-state.ts#L171
TypeError: Cannot read properties of undefined (reading 'projection')
❯ MotionState.unmount src/state/motion-state.ts:171:38
❯ src/components/motion/use-motion-state.ts:149:13
❯ ../../node_modules/.pnpm/@VUE+runtime-core@3.5.17/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:2818:40
❯ callWithErrorHandling ../../node_modules/.pnpm/@VUE+runtime-core@3.5.17/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:19
❯ callWithAsyncErrorHandling ../../node_modules/.pnpm/@VUE+runtime-core@3.5.17/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:207:17
❯ hook.__weh.hook.__weh ../../node_modules/.pnpm/@VUE+runtime-core@3.5.17/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:2798:19
❯ flushPostFlushCbs ../../node_modules/.pnpm/@VUE+runtime-core@3.5.17/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:382:28
❯ render ../../node_modules/.pnpm/@VUE+runtime-core@3.5.17/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5988:7
❯ Object.unmount ../../node_modules/.pnpm/@VUE+runtime-core@3.5.17/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:3972:11
❯ VueWrapper.unmount ../../node_modules/.pnpm/@VUE+test-utils@2.4.6/node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:7791:20
|