Skip to content

Commit

Permalink
Merge pull request #107 from edvinlinden/upgrade-astro
Browse files Browse the repository at this point in the history
Upgrade dependencies
  • Loading branch information
edvinlinden authored Jul 16, 2024
2 parents 936318f + 07103d0 commit 7b04607
Show file tree
Hide file tree
Showing 9 changed files with 2,737 additions and 2,928 deletions.
5 changes: 5 additions & 0 deletions .astro/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"_variables": {
"lastUpdateCheck": 1721145354948
}
}
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Cypress run
uses: cypress-io/github-action@v2
uses: cypress-io/github-action@v6
with:
build: npm run build
start: npm run preview
8 changes: 8 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from "cypress";

export default defineConfig({
e2e: {
baseUrl: "http://localhost:4321",
supportFile: false,
},
});
1 change: 0 additions & 1 deletion cypress.json

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/// <reference types="cypress" />
import googleProducts from "./../../src/assets/products/google.json";
import microsoftProducts from "./../../src/assets/products/microsoft.json";
import appleProducts from "./../../src/assets/products/apple.json";
import otherProducts from "./../../src/assets/products/other.json";
import toSlug from "./../../src/utils/toSlug.ts";
import googleProducts from "../../src/assets/products/google.json";
import microsoftProducts from "../../src/assets/products/microsoft.json";
import appleProducts from "../../src/assets/products/apple.json";
import otherProducts from "../../src/assets/products/other.json";
import toSlug from "../../src/utils/toSlug";

describe("Products", () => {
it("should display correct count for each company", () => {
Expand Down Expand Up @@ -52,6 +52,7 @@ describe("Products", () => {
...appleProducts,
...otherProducts,
].length;
cy.visit("http://localhost:4321/?ref=cypress");

cy.get("[data-cy=product]").should("have.length", productsCount);
});
Expand Down
Loading

0 comments on commit 7b04607

Please sign in to comment.