all repos — caroster @ 95876236a197ac3c43205c69fd4e70f3a300105c

[Octree] Group carpool to your event https://caroster.io

e2e/lib/strapi-utils.ts (view raw)

 1import fs from "fs";
 2import { USER, USER_PASSWORD } from "../constants";
 3import { sdk } from "./gqlSdk";
 4import { wait } from "./wait";
 5
 6export const restartStrapi = async () => {
 7  await fs.promises.writeFile("../backend/restart.test", "Restart Strapi");
 8  await wait(2500);
 9};
10
11export const getJwtToken = async () => {
12  const { login } = await sdk.login({
13    identifier: USER.email as string,
14    password: USER_PASSWORD,
15  });
16  return login?.jwt;
17};