gpt4 book ai didi

javascript - Console.log 在使用 grunt 服务器的 Qunit 测试中不起作用

转载 作者:数据小太阳 更新时间:2023-10-29 05:29:58 25 4
gpt4 key购买 nike

我正在创建在 grunt 服务器上运行的 Qunit 测试。在测试中,当我尝试使用“console.log”将一些输出记录到控制台时,它不会在控制台中打印任何内容。目前我只能使用 OK 来执行断言。

请提供您的意见。

最佳答案

如果您在 grunt 中使用 qunit 任务,则需要使用 --debug(即 grunt test --debug)启动任务。然后,您将看到幻影日志以下列格式打印出您的控制台日志:

[D] ["phantomjs","console","MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"]

See documentation

关于javascript - Console.log 在使用 grunt 服务器的 Qunit 测试中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20880709/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com