Skip to content

Commit

Permalink
feat: exlcude android and ios files
Browse files Browse the repository at this point in the history
  • Loading branch information
alichherawalla committed Apr 15, 2024
1 parent 85a4a9c commit 21153ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: react-native-template
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
Expand Down
2 changes: 1 addition & 1 deletion app/scenes/RootScreen/tests/saga.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Tests for RootScreen sagas', () => {
);
});

it('should ensure that the navigation service is called after waiting for 1000ms11', async () => {
it('should ensure that the navigation service is called after waiting for 1000ms', async () => {

Check failure on line 28 in app/scenes/RootScreen/tests/saga.test.js

View workflow job for this annotation

GitHub Actions / Tests' annotations (🧪 jest-coverage-report-action)

Tests for RootScreen sagas > should ensure that the navigation service is called after waiting for 1000ms

TypeError: (0 , _NavigationService.navigateAndReset) is not a function at Timeout._onTimeout (/home/runner/work/react-native-template/react-native-template/app/scenes/RootScreen/saga.js:9:20) at listOnTimeout (node:internal/timers:569:17) at processTimers (node:internal/timers:512:7) Error: expect(jest.fn()).toHaveBeenCalled() Expected number of calls: >= 1 Received number of calls: 0 at call (/home/runner/work/react-native-template/react-native-template/app/scenes/RootScreen/tests/saga.test.js:33:23) at tryCatch (/home/runner/work/react-native-template/react-native-template/node_modules/regenerator-runtime/runtime.js:63:40) at Generator._invoke (/home/runner/work/react-native-template/react-native-template/node_modules/regenerator-runtime/runtime.js:293:22) at Generator.call (/home/runner/work/react-native-template/react-native-template/node_modules/regenerator-runtime/runtime.js:118:21) at tryCatch (/home/runner/work/react-native-template/react-native-template/node_modules/regenerator-runtime/runtime.js:63:40) at invoke (/home/runner/work/react-native-template/react-native-template/node_modules/regenerator-runtime/runtime.js:154:20) at fn (/home/runner/work/react-native-template/react-native-template/node_modules/regenerator-runtime/runtime.js:164:13) at tryCallOne (/home/runner/work/react-native-template/react-native-template/node_modules/react-native/node_modules/promise/lib/core.js:37:12) at call (/home/runner/work/react-native-template/react-native-template/node_modules/react-native/node_modules/promise/lib/core.js:123:15) at flush (/home/runner/work/react-native-template/react-native-template/node_modules/asap/raw.js:50:29)
const method = startup();
setTopLevelNavigator({ dispatch: submitSpy });
method.next();
Expand Down
3 changes: 2 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
sonar.projectKey=wednesday-solutions_react-native-template_AY7hdnRSB2n8RRmGoU2M
sonar.language=js
sonar.sources=.
sonar.sources=app
sonar.tests=app
sonar.exclusions=**/android/**,**/ios/**,**/node_modules/**
sonar.test.inclusions=**/*.test.js
sonar.javascript.lcov.reportPaths=./coverage/lcov.info
sonar.testExecutionReportPaths=./reports/test-report.xml
Expand Down

0 comments on commit 21153ad

Please sign in to comment.