Ok, i managed to do it by myself, solution was so easy. Need to add await for globalSetup() in test
test.beforeAll(async ({ playwright }) => { await globalSetup(); request = await pwRequest.newContext({ extraHTTPHeaders: {}, });
});