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

deriv-com / deriv-com-v2 / 6158273064

12 Sep 2023 10:36AM CUT coverage: 75.0%. Remained the same
6158273064

Pull #1

github

mohsen-deriv
docs: added script commands
Pull Request #1: docs: added script commands

0 of 2 branches covered (0.0%)

Branch coverage included in aggregate %.

18 of 22 relevant lines covered (81.82%)

2.09 hits per line

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

100.0
/libs/hooks/src/lib/useBuildVariant/index.ts
1
import { BuildVariantContext } from '@deriv-com/providers';
2
import { useContext, useMemo } from 'react';
3

4
export function useBuildVariant() {
5
  const { buildVariant } = useContext(BuildVariantContext);
2✔
6

7
  const variants = useMemo(() => {
2✔
8
    return {
2✔
9
      buildVariant,
10
      isEu: buildVariant === 'eu',
11
      isHk: buildVariant === 'hk',
12
      isGolden: buildVariant === 'gold',
13
      isRow: buildVariant === 'row',
14
    };
15
  }, [buildVariant]);
16
  return variants;
2✔
17
}
18

19
export default useBuildVariant;
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