-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
830ac07
commit 04665e1
Showing
4 changed files
with
1,300 additions
and
541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,17 +15,14 @@ jobs: | |
- name: Lint | ||
run: npm run lint | ||
|
||
- name: test | ||
run: npm run test | ||
|
||
# - name: Test and generate coverage report | ||
# uses: artiomtr/[email protected] | ||
# with: | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
# threshold: 80 | ||
# package-manager: yarn | ||
# skip-step: install | ||
# test-script: yarn test | ||
- name: Test and generate coverage report | ||
uses: artiomtr/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
threshold: 80 | ||
package-manager: yarn | ||
skip-step: install | ||
test-script: yarn test | ||
|
||
- name: SonarQube Scan | ||
uses: sonarsource/sonarqube-scan-action@master | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
import mockAsyncStorage from '@react-native-async-storage/async-storage/jest/async-storage-mock'; | ||
|
||
jest.mock('@react-native-async-storage/async-storage', () => mockAsyncStorage); | ||
|
||
jest.mock('redux-persist', () => { | ||
const real = jest.requireActual('redux-persist'); | ||
return { | ||
...real, | ||
persistReducer: jest.fn().mockImplementation((config, reducers) => reducers) | ||
}; | ||
}); | ||
|
||
console.disableYellowBox = true; |
Oops, something went wrong.