2020-05-18 11:08:01 +01:00
|
|
|
global.beforeEach(() => {
|
|
|
|
if (process.env.TRAVIS || process.env.CI) return;
|
2021-02-15 11:40:55 +03:00
|
|
|
process.stdout.write(jasmine.currentTest.fullName + '...\r');
|
2020-05-18 11:08:01 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
global.afterEach(() => {
|
|
|
|
if (process.env.TRAVIS || process.env.CI) return;
|
|
|
|
if (jasmine.currentTest.failedExpectations.length) {
|
2021-02-15 11:40:55 +03:00
|
|
|
process.stdout.write(jasmine.currentTest.fullName + '...FAIL\n');
|
2020-05-18 11:08:01 +01:00
|
|
|
} else {
|
2021-02-15 11:40:55 +03:00
|
|
|
process.stdout.write(jasmine.currentTest.fullName + '...OK\n');
|
2020-05-18 11:08:01 +01:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
jasmine.getEnv().addReporter({
|
|
|
|
specStarted: result => (jasmine.currentTest = result),
|
|
|
|
specDone: result => (jasmine.currentTest = result),
|
|
|
|
});
|