Skip to content

Commit 2c5d9e0

Browse files
committed
chore: use TypeScript for Cypress stuff
1 parent 446f6aa commit 2c5d9e0

File tree

7 files changed

+15
-474
lines changed

7 files changed

+15
-474
lines changed

cypress.config.js cypress.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const { defineConfig } = require("cypress");
2-
const { registerArgosTask } = require("@argos-ci/cypress/task");
1+
import { registerArgosTask } from "@argos-ci/cypress/task";
2+
import { defineConfig } from "cypress";
33

44
module.exports = defineConfig({
55
e2e: {

cypress/e2e/pages.cy.js cypress/e2e/pages.cy.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ const pages = [
1010
{ name: "blog-post-3", path: "/blog/playwright" },
1111
];
1212

13-
const viewports = ["macbook-16", "ipad-2", "iphone-8"];
14-
1513
describe("Screenshot pages", () => {
1614
for (const { name, path } of pages) {
1715
it(`Screenshots for ${name}`, () => {
1816
cy.visit(path);
19-
cy.argosScreenshot(name, { viewports });
17+
cy.argosScreenshot(name, {
18+
viewports: ["macbook-16", "ipad-2", "iphone-8"],
19+
});
2020
});
2121
}
2222
});
File renamed without changes.
File renamed without changes.

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444
"zod": "^3.22.4"
4545
},
4646
"devDependencies": {
47-
"@argos-ci/cli": "^1.0.11",
48-
"@argos-ci/cypress": "^1.5.3",
47+
"@argos-ci/cypress": "^1.5.5",
4948
"@radix-ui/colors": "^3.0.0",
5049
"@tailwindcss/typography": "^0.5.10",
5150
"@trivago/prettier-plugin-sort-imports": "^4.3.0",

0 commit comments

Comments
 (0)