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

Function getTestSession

tests/__tests__/session.ts:13–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11axios.create = jest.fn(() => axios);
12
13const getTestSession = async () => {
14 const {container: {session}} = await SessionDesign
15 .bind('CookieConstructor', () => {
16 disableCookieFileIO();
17 return Cookie;
18 })
19 .resolve({});
20 return session;
21};
22
23test("getTestSession", async () => {
24 expect(await getTestSession()).toBeInstanceOf(Session);

Callers 1

session.tsFile · 0.85

Calls 1

disableCookieFileIOFunction · 0.90

Tested by

no test coverage detected