Skip to content

Commit

Permalink
refactor: converting testing helpers to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjoy committed Jan 15, 2025
1 parent 07e9804 commit 7fb3cc7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import initializeMockApp from './initializeMockApp';
import {
getAnalyticsService,
MockAnalyticsService,
sendTrackEvent,
} from '../analytics';
import {
MockAuthService,
ensureAuthenticatedUser,
getAuthService,
getLoginRedirectUrl,
MockAuthService,
setAuthenticatedUser,
} from '../auth';
import {
getLoggingService,
logInfo,
MockLoggingService,
} from '../logging';
import initializeMockApp from './initializeMockApp';

describe('initializeMockApp', () => {
it('should create mock analytics, auth, and logging services, and a real i18n service', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-expect-error We're using an alias in the jest config to create this 'fake' package; TS doesn't know about it.
import siteConfig from 'site.config';

import { configure as configureAnalytics, MockAnalyticsService } from '../analytics';
Expand Down
File renamed without changes.

0 comments on commit 7fb3cc7

Please sign in to comment.