Skip to content

Commit

Permalink
test: updated test coverage to not include conditional component Prop…
Browse files Browse the repository at this point in the history
…Types
  • Loading branch information
mlaursen committed Feb 20, 2021
1 parent 946f4dd commit 24e5df1
Show file tree
Hide file tree
Showing 131 changed files with 132 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/alert/src/MessageQueue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export function MessageQueue<M extends ToastMessage = ToastMessage>({
);
}

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/alert/src/Snackbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const Snackbar = forwardRef<HTMLDivElement, SnackbarProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/alert/src/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const Toast = forwardRef<HTMLDivElement, ToastProps>(function Toast(
);
});

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/app-bar/src/AppBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export const AppBar = forwardRef<HTMLDivElement, AppBarProps>(function AppBar(
);
});

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/app-bar/src/AppBarAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const AppBarAction = forwardRef<HTMLButtonElement, AppBarActionProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/autocomplete/src/AutoComplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export const AutoComplete = forwardRef<HTMLInputElement, AutoCompleteProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/autocomplete/src/HighlightedResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export function HighlightedResult({
);
}

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/avatar/src/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const Avatar = forwardRef<HTMLSpanElement, AvatarProps>(function Avatar(
);
});

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/badge/src/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const Badge = forwardRef<HTMLSpanElement, BadgeProps>(function Badge(
);
});

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/badge/src/BadgedButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export const BadgedButton = forwardRef<HTMLButtonElement, BadgedButtonProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/button/src/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/button/src/UnstyledButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const UnstyledButton = forwardRef<
);
});

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/card/src/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const Card = forwardRef<HTMLDivElement, CardProps>(function Card(
);
});

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/card/src/CardActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const CardActions = forwardRef<HTMLDivElement, CardActionsProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/card/src/CardContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const CardContent = forwardRef<HTMLDivElement, CardContentProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/card/src/CardHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const CardHeader = forwardRef<HTMLDivElement, CardHeaderProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/card/src/CardSubtitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const CardSubtitle = forwardRef<HTMLHeadingElement, CardSubtitleProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/card/src/CardTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const CardTitle = forwardRef<HTMLHeadingElement, CardTitleProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/chip/src/Chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ export const Chip = forwardRef<HTMLButtonElement, ChipProps>(function Chip(
);
});

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/dialog/src/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ export const Dialog = forwardRef<HTMLDivElement, DialogProps>(function Dialog(
);
});

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/dialog/src/DialogContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const DialogContent = forwardRef<HTMLDivElement, DialogContentProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/dialog/src/DialogFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const DialogFooter = forwardRef<HTMLDivElement, DialogFooterProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/dialog/src/DialogHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const DialogHeader = forwardRef<HTMLDivElement, DialogHeaderProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/dialog/src/DialogTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const DialogTitle = forwardRef<HTMLHeadingElement, DialogTitleProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/dialog/src/FixedDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export const FixedDialog = forwardRef<HTMLDivElement, FixedDialogProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
2 changes: 2 additions & 0 deletions packages/dialog/src/NestedDialogContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const context = createContext<NestedDialogContext>({
remove: noop,
});

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
context.displayName = "NestedDialogContext";
}
Expand All @@ -49,6 +50,7 @@ export function NestedDialogContextProvider({
const [stack, setStack] = useState<string[]>([]);
const add = useCallback((dialogId: string) => {
setStack((prevStack) => {
/* istanbul ignore next */
if (
process.env.NODE_ENV !== "production" &&
prevStack.includes(dialogId)
Expand Down
1 change: 1 addition & 0 deletions packages/divider/src/Divider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const Divider = forwardRef<DividerElement, DividerProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/divider/src/VerticalDivider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export const VerticalDivider = forwardRef<HTMLDivElement, VerticalDividerProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/expansion-panel/src/ExpansionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const ExpansionList = forwardRef<HTMLDivElement, ExpansionListProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/expansion-panel/src/ExpansionPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ export const ExpansionPanel = forwardRef<HTMLDivElement, ExpansionPanelProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/expansion-panel/src/ExpansionPanelHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export const ExpansionPanelHeader = forwardRef<
);
});

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/Fieldset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const Fieldset = forwardRef<HTMLFieldSetElement, FieldsetProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const Form = forwardRef<HTMLFormElement, FormProps>(function Form(
);
});

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/FormMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export const FormMessage = forwardRef<
);
});

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/file-input/FileInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export const FileInput = forwardRef<HTMLInputElement, FileInputProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/label/FloatingLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export const FloatingLabel = forwardRef<HTMLLabelElement, FloatingLabelProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/label/Label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const Label = forwardRef<HTMLLabelElement, LabelProps>(function Label(
);
});

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/select/Listbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ export const Listbox = forwardRef<ListElement, ListboxProps>(function Listbox(
);
});

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/select/NativeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ export const NativeSelect = forwardRef<HTMLSelectElement, NativeSelectProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/select/Option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const Option = forwardRef<HTMLLIElement, OptionProps>(function Option(
);
});

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ export const Select = forwardRef<HTMLDivElement, SelectProps>(function Select(
);
});

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/slider/RangeSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ export const RangeSlider = forwardRef<HTMLDivElement, RangeSliderProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/slider/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export const Slider = forwardRef<HTMLDivElement, SliderProps>(function Slider(
);
});

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/slider/SliderContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export const SliderContainer = forwardRef<HTMLDivElement, SliderContainerProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/slider/SliderThumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ export const SliderThumb = forwardRef<HTMLSpanElement, SliderThumbProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/slider/SliderTrack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const SliderTrack = forwardRef<HTMLSpanElement, SliderTrackProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/text-field/Password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export const Password = forwardRef<HTMLInputElement, PasswordProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/text-field/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ export const TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/text-field/TextFieldAddon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const TextFieldAddon = forwardRef<HTMLSpanElement, TextFieldAddonProps>(
}
);

/* istanbul ignore next */
if (process.env.NODE_ENV !== "production") {
try {
const PropTypes = require("prop-types");
Expand Down
Loading

0 comments on commit 24e5df1

Please sign in to comment.