Skip to content

Commit

Permalink
chore: strongly types variables for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Feb 28, 2024
1 parent 7d37f7c commit abc7955
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cypress/e2e/devpool.cy.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { RestEndpointMethodTypes } from "@octokit/rest";
import { OAuthToken } from "../../src/home/getters/get-github-access-token";

describe("DevPool", () => {
let issue1: Record<string, unknown>;
let issue2: Record<string, unknown>;
let loginToken: Record<string, unknown>;
let githubUser: Record<string, unknown>;
let issue1: RestEndpointMethodTypes["issues"]["get"]["response"]["data"];
let issue2: RestEndpointMethodTypes["issues"]["get"]["response"]["data"];
let loginToken: OAuthToken;
let githubUser: RestEndpointMethodTypes["users"]["getByUsername"]["response"]["data"];

before(() => {
cy.fixture("issue-1.json").then((content) => {
issue1 = content;
Expand Down

0 comments on commit abc7955

Please sign in to comment.