在为Svelte组件编写Jest测试时,当组件使用es6导入语法导入库时,我得到了一个TypeError: Select is not a constructor错误。TestSelect.js: import Select from 'svelte-select';
{value: 'chocolate/TestSelect.svelte';
describe('Component&
我的父组件中有一个<svelte:component>,它允许我在多个子组件之间切换。我想在一个子组件中调用一个函数。为此,我在父组件中有一个函数,它首先尝试切换到该子组件,然后调用该函数。App.svelte <script> import Second from '.version=3.38.3 问题