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") {