Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
22 lines
703 B
Plaintext
22 lines
703 B
Plaintext
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Context = void 0;
|
|
var logger_1 = require("./logger");
|
|
var Context = /** @class */ (function () {
|
|
function Context() {
|
|
var _this = this;
|
|
this.logger = logger_1.logger;
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
this._cache = {};
|
|
this.cache = {
|
|
addImage: jest.fn().mockImplementation(function (src) {
|
|
var result = Promise.resolve();
|
|
_this._cache[src] = result;
|
|
return result;
|
|
})
|
|
};
|
|
}
|
|
return Context;
|
|
}());
|
|
exports.Context = Context;
|
|
//# sourceMappingURL=context.js.map |