diff --git a/.github/workflows/sdk.yaml b/.github/workflows/sdk.yaml index 737f19b..1aab2da 100644 --- a/.github/workflows/sdk.yaml +++ b/.github/workflows/sdk.yaml @@ -26,9 +26,6 @@ jobs: # https://github.com/creyD/prettier_action?tab=readme-ov-file#example-4-dry-run prettier: runs-on: ubuntu-latest - defaults: - run: - working-directory: sdk steps: - name: Checkout uses: actions/checkout@v4 @@ -41,6 +38,7 @@ jobs: - name: Prettify code uses: creyD/prettier_action@v4.3 with: + working_directory: sdk # "dry" causes that if any file is modified, the job fails dry: True # "write" performs changes in place diff --git a/sdk/babel.config.js b/sdk/babel.config.js index 1c2b73f..dce9150 100644 --- a/sdk/babel.config.js +++ b/sdk/babel.config.js @@ -1,4 +1,4 @@ module.exports = { - presets: ["module:metro-react-native-babel-preset"], - plugins: ["babel-plugin-syntax-hermes-parser"], + presets: ['module:metro-react-native-babel-preset'], + plugins: ['babel-plugin-syntax-hermes-parser'] }; diff --git a/sdk/jest.config.js b/sdk/jest.config.js index 56e5620..efb4607 100644 --- a/sdk/jest.config.js +++ b/sdk/jest.config.js @@ -1,8 +1,10 @@ module.exports = { preset: 'react-native', transform: { - '^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', { rootMode: 'upward' }], + '^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', { rootMode: 'upward' }] }, - transformIgnorePatterns: [ 'node_modules/(?!(react-native|@react-native|react-navigation|@react-navigation|@react-native-community|@react-native-firebase|@react-navigation/stack|@react-navigation/bottom-tabs|@react-navigation/drawer|@react-navigation/native|@react-navigation/material-bottom-tabs|@react-navigation/material-top-tabs|@react-navigation/stack|@react-navigation/web))' ], + transformIgnorePatterns: [ + 'node_modules/(?!(react-native|@react-native|react-navigation|@react-navigation|@react-native-community|@react-native-firebase|@react-navigation/stack|@react-navigation/bottom-tabs|@react-navigation/drawer|@react-navigation/native|@react-navigation/material-bottom-tabs|@react-navigation/material-top-tabs|@react-navigation/stack|@react-navigation/web))' + ], setupFiles: ['./__mocks__/RaygunNativeBridge.js'] }; diff --git a/sdk/react-native.config.js b/sdk/react-native.config.js index 0800f2b..1cb77c6 100644 --- a/sdk/react-native.config.js +++ b/sdk/react-native.config.js @@ -3,7 +3,7 @@ module.exports = { platforms: { ios: {}, android: { - packageInstance: "new RaygunNativeBridgePackage()" + packageInstance: 'new RaygunNativeBridgePackage()' } } }