V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
kernel
V2EX  ›  Node.js

你们能成功运行 ava + typescript 吗?

  •  
  •   kernel · Aug 9, 2018 · 4552 views
    This topic created in 2820 days ago, the information mentioned may be changed or developed.
    按这里的说明,https://github.com/avajs/ava/blob/master/docs/recipes/typescript.md
    死活报
    ✖ Couldn't find any files to test
    2 replies    2018-08-30 19:58:23 +08:00
    kernel
        1
    kernel  
    OP
       Aug 9, 2018
    发现了个 ava-ts,可以直接运行测试,不过这货不支持 power assertion,失败测试定位的源码和输出结果一团糟没法看。

    暂时用编译后再运行的方式,好处是输出正确了,坏处是定位的是编译后的源代码行。

    尼玛下个项目要换掉 ava 了,都 8102 年了还不支持 ts
    kernel
        2
    kernel  
    OP
       Aug 30, 2018
    更新一下,现在换 mocha,爽歪歪,完美支持 ts,连 power-assert 都没问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1348 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 17:18 · PVG 01:18 · LAX 10:18 · JFK 13:18
    ♥ Do have faith in what you're doing.