Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

DEVPROD-809: Upgrade Prettier to v3.2.2 #2220

Merged
merged 5 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const getConfig = ({
generatedFileName: string;
} & Pick<CodegenConfig, "silent">): CodegenConfig => ({
documents: ["./src/**/*.ts", "./src/**/*.graphql", "./src/**/*.gql"].map(
(d) => path.resolve(__dirname, d)
(d) => path.resolve(__dirname, d),
),
generates: {
[generatedFileName]: {
Expand Down Expand Up @@ -36,7 +36,7 @@ export const getConfig = ({

export const generatedFileName = path.resolve(
__dirname,
"./src/gql/generated/types.ts"
"./src/gql/generated/types.ts",
);

export default getConfig({
Expand Down
4 changes: 2 additions & 2 deletions cypress/integration/banners/slack_notification_banner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe("Slack notification banner", () => {
cy.dataCy(slackNotificationBanner).should("exist");

cy.visit(
"/task/evergreen_ubuntu1604_dist_patch_33016573166a36bd5f46b4111151899d5c4e95b1_5ecedafb562343215a7ff297_20_05_27_21_39_46/logs?execution=1"
"/task/evergreen_ubuntu1604_dist_patch_33016573166a36bd5f46b4111151899d5c4e95b1_5ecedafb562343215a7ff297_20_05_27_21_39_46/logs?execution=1",
);
cy.dataCy(slackNotificationBanner).should("exist");
});
Expand All @@ -33,7 +33,7 @@ describe("Slack notification banner", () => {
cy.dataCy(slackNotificationBanner).should("not.exist");
cy.validateToast(
"success",
"You will now receive Slack notifications when your patches fail or succeed"
"You will now receive Slack notifications when your patches fail or succeed",
);

cy.visit("/preferences/notifications");
Expand Down
10 changes: 5 additions & 5 deletions cypress/integration/breadcrumbs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ describe("Viewing a patch", () => {
describe("Viewing a user's own patch", () => {
beforeEach(() => {
cy.visit(
"/task/mci_ubuntu1604_test_command_patch_a1d2c8f70bf5c543de8b9641ac1ec08def1ddb26_5f74d99ab2373627c047c5e5_20_09_30_19_16_47"
"/task/mci_ubuntu1604_test_command_patch_a1d2c8f70bf5c543de8b9641ac1ec08def1ddb26_5f74d99ab2373627c047c5e5_20_09_30_19_16_47",
);
});
it("Clicking on the display task breadcrumb should take you to that task", () => {
cy.dataCy("bc-display-task").should("include.text", "asdf");
cy.dataCy("bc-display-task").click();
cy.url().should(
"include",
"/task/mci_ubuntu1604_display_asdf_patch_a1d2c8f70bf5c543de8b9641ac1ec08def1ddb26_5f74d99ab2373627c047c5e5_20_09_30_19_16_47"
"/task/mci_ubuntu1604_display_asdf_patch_a1d2c8f70bf5c543de8b9641ac1ec08def1ddb26_5f74d99ab2373627c047c5e5_20_09_30_19_16_47",
);
});
it("Clicking the 'My Patches' breadcrumb goes to the logged in user's Patches Page when the current patch belongs to the logged in user", () => {
Expand All @@ -21,7 +21,7 @@ describe("Viewing a patch", () => {
describe("Viewing another user's patch", () => {
beforeEach(() => {
cy.visit(
"/task/evergreen_ubuntu1604_dist_patch_33016573166a36bd5f46b4111151899d5c4e95b1_5ecedafb562343215a7ff297_20_05_27_21_39_46"
"/task/evergreen_ubuntu1604_dist_patch_33016573166a36bd5f46b4111151899d5c4e95b1_5ecedafb562343215a7ff297_20_05_27_21_39_46",
);
});
it("Clicking on the patch name breadcrumb from a task should take you to that version", () => {
Expand All @@ -40,13 +40,13 @@ describe("Viewing a patch", () => {
describe("Viewing a mainline commit", () => {
beforeEach(() => {
cy.visit(
"/task/evergreen_ubuntu1604_test_service_patch_5e823e1f28baeaa22ae00823d83e03082cd148ab_5e4ff3abe3c3317e352062e4_20_02_21_15_13_48"
"/task/evergreen_ubuntu1604_test_service_patch_5e823e1f28baeaa22ae00823d83e03082cd148ab_5e4ff3abe3c3317e352062e4_20_02_21_15_13_48",
);
});
it("Clicking the commit message breadcrumb from a task should take you to that version", () => {
cy.dataCy("bc-message").should(
"include.text",
"5e823e1 - 'ever…reen/pull/3186)"
"5e823e1 - 'ever…reen/pull/3186)",
);
cy.dataCy("bc-message").click();
cy.url().should("include", "/version/5e4ff3abe3c3317e352062e4");
Expand Down
6 changes: 3 additions & 3 deletions cypress/integration/commit_queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe("commit queue page", () => {
cy.dataCy("commit-queue-message").should("exist");
cy.dataCy("commit-queue-message").should(
"contain.text",
"This is the commit queue"
"This is the commit queue",
);
});

Expand All @@ -68,8 +68,8 @@ describe("commit queue page", () => {
"some other commit",
"crazy cool commit!!!",
"mega commit",
][index]
)
][index],
),
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/container/container_events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe("Container events", () => {
.should(
"have.attr",
"href",
"/task/logkeeper_ubuntu_test_edd78c1d581bf757a880777b00685321685a8e67_16_10_20_21_58_58?execution=0"
"/task/logkeeper_ubuntu_test_edd78c1d581bf757a880777b00685321685a8e67_16_10_20_21_58_58?execution=0",
);
});
});
Expand Down
6 changes: 3 additions & 3 deletions cypress/integration/distroSettings/general_section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe("general section", () => {
cy.dataCy("save-settings-button").should(
"have.attr",
"aria-disabled",
"true"
"true",
);

// Update fields.
Expand All @@ -27,7 +27,7 @@ describe("general section", () => {
cy.getInputByLabel("Alias").should("have.value", "localhost-alias");
cy.getInputByLabel("Notes").should("have.value", "this is a note");
cy.getInputByLabel("Disable shallow clone for this distro").should(
"be.checked"
"be.checked",
);

// Undo changes.
Expand All @@ -47,7 +47,7 @@ describe("general section", () => {

it("warns users that the distro will not be spawned for tasks", () => {
cy.contains(
"Distro is a container pool, so it cannot be spawned for tasks."
"Distro is a container pool, so it cannot be spawned for tasks.",
).should("be.visible");
});
});
Expand Down
6 changes: 3 additions & 3 deletions cypress/integration/distroSettings/host_section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe("host section", () => {
it("shows an error when selecting an incompatible host communication method", () => {
cy.selectLGOption("Host Communication Method", "RPC");
cy.contains(
"Legacy and non-legacy bootstrapping and communication are incompatible."
"Legacy and non-legacy bootstrapping and communication are incompatible.",
);
});

Expand All @@ -33,7 +33,7 @@ describe("host section", () => {
cy.getInputByLabel("SSH Option").type("BatchMode=yes");
cy.selectLGOption(
"Host Overallocation Rule",
"Terminate hosts when overallocated"
"Terminate hosts when overallocated",
);

save();
Expand Down Expand Up @@ -96,7 +96,7 @@ describe("host section", () => {
cy.getInputByLabel("Client Directory").type("/client/dir");
cy.getInputByLabel("Shell Path").type("/shell/path");
cy.getInputByLabel("Home Volume Format Command").type(
"echo 'Hello World'"
"echo 'Hello World'",
);
cy.getInputByLabel("Number of Files").type("10");
cy.getInputByLabel("Number of CGroup Tasks").type("20");
Expand Down
8 changes: 4 additions & 4 deletions cypress/integration/distroSettings/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ describe("using the distro dropdown", () => {
cy.dataCy("save-settings-button").should(
"not.have.attr",
"aria-disabled",
"true"
"true",
);
cy.dataCy("project-health-link").click();
cy.dataCy("navigation-warning-modal").should("be.visible");
cy.contains("button", "Cancel").click();
cy.dataCy("navigation-warning-modal").should("not.exist");
cy.location("pathname").should(
"eq",
"/distro/localhost/settings/general"
"/distro/localhost/settings/general",
);
});

Expand All @@ -41,7 +41,7 @@ describe("using the distro dropdown", () => {
cy.dataCy("save-settings-button").should(
"not.have.attr",
"aria-disabled",
"true"
"true",
);
cy.contains("a", "Task Settings").click();
cy.dataCy("save-modal").should("be.visible");
Expand All @@ -53,7 +53,7 @@ describe("using the distro dropdown", () => {
cy.dataCy("save-settings-button").should(
"not.have.attr",
"aria-disabled",
"true"
"true",
);
cy.dataCy("project-health-link").click();
cy.dataCy("navigation-warning-modal").should("be.visible");
Expand Down
8 changes: 4 additions & 4 deletions cypress/integration/distroSettings/new_distro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ describe("Creating a new distro", () => {
cy.validateToast("success");
cy.location("pathname").should(
"eq",
`/distro/${newDistroId}/settings/general`
`/distro/${newDistroId}/settings/general`,
);

cy.dataCy("delete-distro-button").should(
"have.attr",
"aria-disabled",
"false"
"false",
);
cy.dataCy("delete-distro-button").click();
cy.dataCy("delete-distro-modal").should("be.visible");
Expand Down Expand Up @@ -52,13 +52,13 @@ describe("Copying a distro", () => {
cy.validateToast("success");
cy.location("pathname").should(
"eq",
`/distro/${copyDistroId}/settings/general`
`/distro/${copyDistroId}/settings/general`,
);

cy.dataCy("delete-distro-button").should(
"have.attr",
"aria-disabled",
"false"
"false",
);
cy.dataCy("delete-distro-button").click();
cy.dataCy("delete-distro-modal").should("be.visible");
Expand Down
4 changes: 2 additions & 2 deletions cypress/integration/distroSettings/on_save_operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ describe("using an on-save operation", () => {
save(DistroOnSaveOperation.Decommission);
cy.validateToast(
"success",
"Updated distro and scheduled 0 hosts to update."
"Updated distro and scheduled 0 hosts to update.",
);

// Reset field
cy.getInputByLabel("Notes").clear();
save(DistroOnSaveOperation.RestartJasper);
cy.validateToast(
"success",
"Updated distro and scheduled 0 hosts to update."
"Updated distro and scheduled 0 hosts to update.",
);
});
});
6 changes: 3 additions & 3 deletions cypress/integration/distroSettings/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe("with various permission levels", () => {
cy.dataCy("delete-distro-button").should(
"not.have.attr",
"aria-disabled",
"true"
"true",
);
cy.get("textarea").should("not.be.disabled");
});
Expand All @@ -46,7 +46,7 @@ describe("with various permission levels", () => {
cy.dataCy("delete-distro-button").should(
"have.attr",
"aria-disabled",
"true"
"true",
);
cy.get("textarea").should("not.be.disabled");
});
Expand All @@ -72,7 +72,7 @@ describe("with various permission levels", () => {
cy.dataCy("delete-distro-button").should(
"have.attr",
"aria-disabled",
"true"
"true",
);
cy.dataCy("distro-settings-page").within(() => {
cy.get("input").should("be.disabled");
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/distroSettings/project_section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe("project section", () => {
cy.dataCy("save-settings-button").should(
"have.attr",
"aria-disabled",
"true"
"true",
);

// Update fields.
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/distroSettings/provider_section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe("provider section", () => {
it("shows pool mapping information based on container pool id", () => {
cy.getInputByLabel("Container Pool ID").should(
"contain.text",
"test-pool-1"
"test-pool-1",
);
cy.getInputByLabel("Pool Mapping Information")
.should("have.attr", "placeholder")
Expand Down
8 changes: 4 additions & 4 deletions cypress/integration/distroSettings/task_section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe("task section", () => {
cy.dataCy("save-settings-button").should(
"have.attr",
"aria-disabled",
"true"
"true",
);

// Update fields.
Expand All @@ -54,15 +54,15 @@ describe("task section", () => {
cy.reload();
cy.getInputByLabel("Task Finder Version").should(
"contain.text",
"Parallel"
"Parallel",
);
cy.getInputByLabel("Task Planner Version").should(
"contain.text",
"Tunable"
"Tunable",
);
cy.getInputByLabel("Task Dispatcher Version").should(
"contain.text",
"Revised with dependencies"
"Revised with dependencies",
);

// Undo changes.
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/host/host_buttons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe("Host page restart jasper, reprovision, and update host status buttons"
cy.contains("button", "Update").should(
"not.have.attr",
"aria-disabled",
"true"
"true",
);
cy.contains("button", "Update").click({ force: true });
});
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/host/host_core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("Host page title is displayed ", () => {
cy.visit(`host/macos-1014-68.macstadium.build.10gen`);
cy.dataCy("page-title").should(
"include.text",
"Host: macos-1014-68.macstadium.build.10gen"
"Host: macos-1014-68.macstadium.build.10gen",
);
});
});
2 changes: 1 addition & 1 deletion cypress/integration/host/host_events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ describe("Host events", () => {
cy.contains("button", "Save Changes").click();
cy.visit(pathWithEvents);
cy.dataCy("HOST_JASPER_RESTARTING-time").contains(
"Sep 30, 2017, 9:11:16 AM"
"Sep 30, 2017, 9:11:16 AM",
);
// Reset timezone so re-running this test works.
cy.visit("/preferences");
Expand Down
4 changes: 2 additions & 2 deletions cypress/integration/host/host_sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe("Host page title and sidebar ", () => {
cy.visit(pathNoTask);
cy.dataCy("page-title").should(
"include.text",
"Host: macos-1014-68.macstadium.build.10gen"
"Host: macos-1014-68.macstadium.build.10gen",
);
});

Expand All @@ -24,7 +24,7 @@ describe("Host page title and sidebar ", () => {
it("sshCommand has the correct values", () => {
cy.visit(pathWithTask);
cy.dataCy("ssh-command").contains(
"ssh [email protected]"
"ssh [email protected]",
);
});
});
4 changes: 2 additions & 2 deletions cypress/integration/hosts/host_filtering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ describe("Hosts page filtering from table filters", () => {

cy.dataCy(`${filterIconDataCy}-input-filter`).type(
`${filterValue}{enter}`,
{ scrollBehavior: false }
{ scrollBehavior: false },
);
}
cy.dataCy(`${filterIconDataCy}-wrapper`).should("not.exist");
Expand All @@ -138,6 +138,6 @@ describe("Hosts page filtering from table filters", () => {
.type("{enter}");
}
});
}
},
);
});
2 changes: 1 addition & 1 deletion cypress/integration/hosts/hosts_page_default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("Hosts Page Default", () => {

it("Renders hosts table with hosts sorted by status by default", () => {
cy.dataCy("leafygreen-table-row").each(($el, index) =>
cy.wrap($el).contains(defaultHostsFirstPage[index])
cy.wrap($el).contains(defaultHostsFirstPage[index]),
);
});

Expand Down
Loading