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

microsoft / BotFramework-Composer / 8946411146

28 Mar 2024 01:12PM UTC coverage: 54.424% (-0.06%) from 54.482%
8946411146

push

github

web-flow
Merge pull request #9713 from OEvgeny/chore/update-electron-26

chore: update dependencies

7577 of 18338 branches covered (41.32%)

Branch coverage included in aggregate %.

939 of 1507 new or added lines in 170 files covered. (62.31%)

8 existing lines in 8 files now uncovered.

19745 of 31864 relevant lines covered (61.97%)

26.54 hits per line

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

0.0
/Composer/packages/lib/code-editor/src/utils/debug.ts
1
// Copyright (c) Microsoft Corporation.
2
// Licensed under the MIT License.
3

4
import React from 'react';
×
5

6
export const useTraceProps = <T extends Record<any, any>>(props: T, prefix?: string) => {
×
7
  const prev = React.useRef(props);
8
  React.useEffect(() => {
NEW
9
    const changedProps = Object.entries(props).reduce(
×
10
      (ps, [k, v]) => {
NEW
11
        if (prev.current[k] !== v) {
×
NEW
12
          ps[k] = [prev.current[k], v];
×
13
        }
NEW
14
        return ps;
×
15
      },
16
      {} as Record<any, any>,
17
    );
UNCOV
18
    if (Object.keys(changedProps).length > 0) {
×
19
      // eslint-disable-next-line no-console
20
      console.log(`${prefix || ''}: changed props:`, changedProps);
×
21
    }
22
    prev.current = props;
×
23
  });
24
};
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

© 2026 Coveralls, Inc