Skip to content

Commit

Permalink
Merge pull request #1193 from shankari/fix_javascript_tests
Browse files Browse the repository at this point in the history
💚 Enable babel transpiling of react-native as well
  • Loading branch information
shankari authored Dec 21, 2024
2 parents 3376a58 + e9abaee commit 89127bc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@ jobs:
shell: bash -l {0}
run: |
source setup/activate_serve.sh
npx jest
npm run test
- name: Upload exact version(s) of packages used
uses: actions/upload-artifact@v4
with:
name: versions-results
path: |
package-lock.json
./coverage/coverage-final.json
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
Expand All @@ -33,4 +41,4 @@ jobs:
files: ./coverage/coverage-final.json
flags: unit
fail_ci_if_error: ${{ github.repository == 'e-mission/e-mission-phone' }}


2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
presets: ['@babel/preset-env', '@babel/preset-typescript', '@babel/preset-react'],
presets: ['@babel/preset-env', '@babel/preset-typescript', '@babel/preset-react', 'module:@react-native/babel-preset'],
plugins: ['@babel/plugin-transform-flow-strip-types'],
}
6 changes: 5 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
coverage:
status:
project:
default: false # disable the default status that measures entire project
comment:
layout: " diff, flags, files"
behavior: default
require_changes: false
require_base: false
require_head: true
hide_project_coverage: false


0 comments on commit 89127bc

Please sign in to comment.