Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Assisneto/munchkin into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Assisneto committed Jun 5, 2024
2 parents 0eb0794 + 1d108d8 commit 3c8c27b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Continuous Integration

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm test
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.github
coverage
8 changes: 5 additions & 3 deletions src/screen/home/components/header/header.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { render, fireEvent, act } from "@testing-library/react-native";
import { render, fireEvent, act, waitFor } from "@testing-library/react-native";
import React, { ReactNode } from "react";
import { Header } from ".";
import { ThemeProvider } from "styled-components/native";
Expand Down Expand Up @@ -127,8 +127,10 @@ describe("<Header />", () => {
fireEvent.press(modalCloseButton);
});

const diceModal = queryByTestId("diceModal");
expect(diceModal).toBeNull();
await waitFor(() => {
const diceModal = queryByTestId("diceModal");
expect(diceModal).toBeFalsy();
});
});
it("switches theme when the theme icon is pressed", async () => {
const { getByTestId } = renderWithTheme(
Expand Down

0 comments on commit 3c8c27b

Please sign in to comment.