Skip to content

Commit

Permalink
fix: failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
isaaclindenman committed Jan 15, 2024
1 parent 02cc179 commit 8bc340c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
7 changes: 7 additions & 0 deletions frontend/src/styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,11 @@ div#__next > div {
.page-content-container {
@apply mx-auto container px-8 2xl:px-0 pb-8;
}
.marketing-card {
@apply card shadow-xl shadow-info-content hover:shadow-info rounded-4xl bg-base-300 text-base-content/90 hover:text-base-content transition-shadow duration-700;
}

.gradient-headline {
@apply text-transparent bg-gradient-to-r from-base-content/50 via-base-content/90 to-base-content/50 hover:text-neutral-content transition-colors ease-in-out duration-500 bg-clip-text;
}
}
8 changes: 0 additions & 8 deletions frontend/src/styles/landing-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@
}
}

.marketing-card {
@apply card shadow-xl shadow-info-content hover:shadow-info rounded-4xl bg-base-300 text-base-content/90 hover:text-base-content transition-shadow duration-700;
}

.gradient-headline {
@apply text-transparent bg-gradient-to-r from-base-content/50 via-base-content/90 to-base-content/50 hover:text-neutral-content transition-colors ease-in-out duration-500 bg-clip-text;
}

.animate-slideUp {
animation: slideUp 42s linear infinite;
}
12 changes: 12 additions & 0 deletions frontend/tests/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,15 @@ beforeEach(() => {
mockGroup.mockReset();
process.env.NEXT_PUBLIC_SEGMENT_WRITE_KEY = 'test';
});
export const unstableSetRequestLocaleMock = vi.fn();

vi.mock(
'next-intl/server',
async (importOriginal: () => Promise<Record<string, any>>) => {
const original = importOriginal();
return {
...original,
unstable_setRequestLocale: unstableSetRequestLocaleMock,
};
},
);

0 comments on commit 8bc340c

Please sign in to comment.