Skip to content
Snippets Groups Projects
Commit d92163b7 authored by Xiao Gui's avatar Xiao Gui
Browse files

update jasmine reporter

parent d2ea8c38
No related branches found
No related tags found
......@@ -43,13 +43,8 @@ const localConfig = {
if (typeof globalThis === 'undefined') global.globalThis = {}
jasmine.getEnv().addReporter({
specDone: async ({ status, id, fullName, ...rest }) => {
if (status !== 'passed') {
if (process.stdout.isTTY) {
console.log(`\x1b[31m&s\x1b[0m`, 'F')
console.log(`spec failed, taking screenshot`)
} else {
console.log(`F`)
}
if (status === 'failed') {
console.log(`spec failed, taking screenshot`)
const b64 = await globalThis.IAVBase.takeScreenshot()
const dir = './scrnsht/'
await asyncMkdir(dir, { recursive: true })
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment