Redirect calls to console.log() to standard output in Jasmine tests

后端 未结 8 1445
名媛妹妹
名媛妹妹 2021-02-02 05:00

I\'m using Jasmine via the jasmine-maven-plugin, and I would like to see console.log() messages in the Maven build output. Is there a way to achieve this?

If console.log

8条回答
  •  野性不改
    2021-02-02 06:00

    If you are running in a node env. You could use

    process.stdout.write("this will be send to the console");
    

提交回复
热议问题