我已经安装了Jasmine和TypeScript来配置Visual Studio Code。
下面是我的测试文件:
TestSpec.ts
请指导我如何将msg值作为日志打印并在Visual Studio Code中运行Jasmine测试?
我尝试使用specrunner.html运行,但结果只会显示通过或失败,无法在specrunner结果文件上打印任何日志。
下面是我的测试文件:
TestSpec.ts
describe("Testing", () =>{
it("should pass", () =>{
let msg = "Welcome to TypeScript";
//I want to print the msg first like a log
expect(msg).toBe("Welcome to TypeScript")
})
})
请指导我如何将msg值作为日志打印并在Visual Studio Code中运行Jasmine测试?
我尝试使用specrunner.html运行,但结果只会显示通过或失败,无法在specrunner结果文件上打印任何日志。