Files
clients/libs/subscription/test.setup.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
596 B
TypeScript
Raw Permalink Normal View History

[PM-29608] [PM-29609] Premium subscription redesign cards (#18145) * refactor(pricing): misc - Remove unused test file * refactor(pricing): discount-badge.component - Introduce new Discount union type - Introduce Maybe type helper for T | null | undefined - Use Discount type in the discount-badge.component - Update the user-subscription.component to pass Discount type into the discount-badge.component - Update spec, stories and mdx * refactor(pricing): pricing-card.component - Support changeDetection: ChangeDetectionStrategy.OnPush - Update spec and mdx files * refactor(pricing): cart-summary.component - Introduce new Cart type - Use Cart type as main input in cart-summary.component - Support optional custom header template in cart-summary.component - Support optional cart-level Discount type in cart-summary.component - Update upgrade-payment.component to pass in new Cart type to cart-summary.component - Update spec file, stories and mdx file * feat(subscription): misc - Remove unused test file - Update jest.config.js - Add test.setup.ts * feat(subscription): subscription-card.component - Add BitwardenSubscription type - Add subscription-card.component - Add translations - Add spec file, stories and MDX file * feat(subscription): storage-card.component - Add standalone Storage type - Add storage-card.component - Add spec file, stories and MDX file * feat(subscription): additional-options-card.component - Add additional-options-card.component - Add spec file, stories and MDX file * fix(pricing): cart-summary.component.stories.ts lint * fix(pricing): discount-badge.component.stories.ts lint * fix(web): Resolve estimatedTax$ toSignal for use in cart on upgrade-payment.component * feedback(design): Fix design issues * Kyle's feedback * Kyle's feedback * cleanup: Use SubscriptionStatuses instead of string values * feat: Add CTA disabling input to storage-card.component * feat: Add CTA disabling input to additional-options-card.component
2026-01-07 10:54:32 -06:00
import { webcrypto } from "crypto";
import "@bitwarden/ui-common/setup-jest";
Object.defineProperty(window, "CSS", { value: null });
Object.defineProperty(window, "getComputedStyle", {
value: () => {
return {
display: "none",
appearance: ["-webkit-appearance"],
};
},
});
Object.defineProperty(document, "doctype", {
value: "<!DOCTYPE html>",
});
Object.defineProperty(document.body.style, "transform", {
value: () => {
return {
enumerable: true,
configurable: true,
};
},
});
Object.defineProperty(window, "crypto", {
value: webcrypto,
});