Skip to content

Commit

Permalink
writing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CalcagnoLoic committed Jan 27, 2024
1 parent 6d30a6c commit 5410689
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 38 deletions.
File renamed without changes.
21 changes: 21 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Deploy to Github Pages"

on:
push:
branches:
- develop
- main

jobs:
lint_and_test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm ci
- run: npm run lint
- run: npm run test
22 changes: 0 additions & 22 deletions src/components/Counter/index.spec.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions src/components/Dropdown/BasketDropdown/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,6 @@ describe("Basket Dropdown Suite Test", () => {
expect(getByText("Your cart is empty.")).toBeInTheDocument();
});

/* it("should be display the basket content with items", async () => {
const { getByTestId } = render(
<BasketProvider>
<Counter />
<BasketDropdown setIsOpen={() => {}} />
</BasketProvider>,
);
const quantityIconsPlus = getByTestId("plus-icon");
userEvent.click(quantityIconsPlus);
await waitFor(() => {
expect(screen.queryByText("Your cart is empty.")).toBeNull();
});
}); */

it("should close the dropdown basket if user clicks outside", () => {
const setIsOpenMock = vi.fn();

Expand Down

0 comments on commit 5410689

Please sign in to comment.