fix: trigger bump when useEffect is mounted for the first time to retrieve latest value and prevents stale values being returned #188
Workflow file for this run
This file contains hidden or 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
| name: Test JS | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/test-js.yml' | |
| - 'packages/react-native-mmkv/**' | |
| pull_request: | |
| paths: | |
| - '.github/workflows/test-js.yml' | |
| - 'packages/react-native-mmkv/**' | |
| jobs: | |
| test: | |
| name: Test JS | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Install npm dependencies (bun) | |
| run: bun install | |
| - name: Run Jest | |
| run: bun run test |