All files / blong-browser/src/lib testid.ts

100% Statements 1/1
75% Branches 3/4
100% Functions 1/1
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

11x
export default (id : string) => id && ({'data-testid': id.replace(/[/.]/g, match => match === '.' ? '-' : '_')});