EXPERIMENTAL: more js tests logs (#7620)

This commit is contained in:
Joffrey JAFFEUX 2019-05-28 14:49:45 +02:00 committed by GitHub
parent bf3c781f26
commit bed3560d61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,12 @@ function resetSite(siteSettings, extras) {
Discourse.Site.resetCurrent(Discourse.Site.create(siteAttrs));
}
QUnit.testDone(function(ctx) {
console.log("-- " + ctx.runtime);
});
QUnit.testStart(function(ctx) {
console.log(ctx.module + " -> " + ctx.name);
server = pretender.default();
if (ctx.module.startsWith(acceptanceModulePrefix)) {
@ -111,7 +116,11 @@ QUnit.testStart(function(ctx) {
success: pretender.success
};
applyPretender(ctx.module.replace(acceptanceModulePrefix, ""), server, helper);
applyPretender(
ctx.module.replace(acceptanceModulePrefix, ""),
server,
helper
);
}
// Allow our tests to change site settings and have them reset before the next test