我有一个.vue
文件,我以此方式加载ts
文件:
PasswordField.vue
<script lang="ts" src="@/assets/ts/components/form/password-field.ts"></script>
[当我运行yarn test
进行Jest测试时,我将其作为输出:
ENOENT: no such file or directory, open '/Users/dir/Projects/dir/dir/07 - browser application/code/components/form/@/assets/ts/components/form/password-field.ts'
如何确保Jest处理好@
以成功转到父级?
非常感谢,马尔滕
我认为'@'无效。而是使用下面的代码: