all repos — caroster @ 28c17c71bf52902c50781710dcab98152bfd46a4

[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(4000);
 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};