首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
广告
V2EX
›
Node.js
你们能成功运行 ava + typescript 吗?
kernel
·
2018-08-09 15:48:52 +08:00
· 4114 次点击
这是一个创建于 2222 天前的主题,其中的信息可能已经有所发展或是发生改变。
按这里的说明,
https://github.com/avajs/ava/blob/master/docs/recipes/typescript.md
死活报
✖ Couldn't find any files to test
couldn't
TypeScript
files
ava
2 条回复
•
2018-08-30 19:58:23 +08:00
1
kernel
OP
2018-08-09 21:06:28 +08:00
发现了个 ava-ts,可以直接运行测试,不过这货不支持 power assertion,失败测试定位的源码和输出结果一团糟没法看。
暂时用编译后再运行的方式,好处是输出正确了,坏处是定位的是编译后的源代码行。
尼玛下个项目要换掉 ava 了,都 8102 年了还不支持 ts
2
kernel
OP
2018-08-30 19:58:23 +08:00
更新一下,现在换 mocha,爽歪歪,完美支持 ts,连 power-assert 都没问题
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
2275 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms ·
UTC 10:33
·
PVG 18:33
·
LAX 03:33
·
JFK 06:33
Developed with
CodeLauncher
♥ Do have faith in what you're doing.