Skip to content

Commit 1e528c4

Browse files
Fix jest
1 parent 7838428 commit 1e528c4

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

.github/workflows/testing.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
run: |
3636
yarn lint --max-warnings=0
3737
38-
# - name: Run tests
39-
# uses: willcaul/jest-github-action@v4
40-
# env:
41-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
# with:
43-
# test-command: "yarn test"
38+
- name: Run tests
39+
uses: willcaul/jest-github-action@v4
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
with:
43+
test-command: "yarn test"

__mocks__/react-native-share.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* @format
3+
*/
4+
/* eslint-env jest */
5+
6+
jest.mock('react-native-share', () => ({
7+
default: jest.fn(),
8+
}));
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* @format
3+
*/
4+
/* eslint-env jest */
5+
6+
jest.mock('react-native-toast-message', () => ({
7+
show: jest.fn(),
8+
hide: jest.fn(),
9+
}));

0 commit comments

Comments
 (0)