• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

e7h4n / rippling / 12212279903

07 Dec 2024 10:51AM UTC coverage: 76.031% (+0.7%) from 75.309%
12212279903

push

github

e7h4n
build: better lint / format / commit toolchain

- makes prettier & eslint works together
- use commitlint to check commit message
- reformat all existed sources
- add git action to check commit message

161 of 170 branches covered (94.71%)

Branch coverage included in aggregate %.

53 of 103 new or added lines in 26 files covered. (51.46%)

6 existing lines in 4 files now uncovered.

521 of 727 relevant lines covered (71.66%)

118.53 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.33
/packages/rippling/src/react/provider.ts
1
import { createContext, useContext } from 'react';
2✔
2
import { Store } from '../core';
3

4
const StoreContext = createContext<Store | null>(null);
2✔
5

6
export const StoreProvider = StoreContext.Provider;
2✔
7

8
export function useStore(): Store {
2✔
9
  const store = useContext(StoreContext);
139✔
10

11
  if (!store) {
139✔
NEW
12
    throw new Error('Store context not found - did you forget to wrap your app with StoreProvider?');
×
13
  }
×
14

15
  return store;
139✔
16
}
139✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc