MCPcopy Create free account
hub / github.com/Tatamo/atcoder-cli / disableCookieFileIO

Function disableCookieFileIO

tests/utils/cookie.ts:7–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 * コンフィグファイルとの読み書きを行わず、必ず空のセッションが返るようにする
6 */
7export function disableCookieFileIO() {
8 Cookie.prototype.loadConfigFile = jest.fn(async function () {
9 // @ts-ignore
10 this.cookies = []
11 });
12 Cookie.prototype.saveConfigFile = jest.fn(async function () {
13 });
14}

Callers 2

atcoder.tsFile · 0.90
getTestSessionFunction · 0.90

Calls

no outgoing calls

Tested by 1

getTestSessionFunction · 0.72