Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: unittests mock federation router url #375

Merged
merged 2 commits into from
Jul 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions DockerfileCache
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ ARG NEXT_PUBLIC_MATOMO_SITE_ID
ARG NEXT_PUBLIC_MATOMO_SRC_URL
ARG NEXT_PUBLIC_MATOMO_TRACKER_URL
ARG NEXT_PUBLIC_MATOMO_ENABLED
ARG NEXT_PUBLIC_ASKEM_API_KEY_FI
ARG NEXT_PUBLIC_ASKEM_API_KEY_EN
ARG NEXT_PUBLIC_ASKEM_API_KEY_SV
ARG NEXT_PUBLIC_ASKEM_ENABLED
ARG NEXT_PUBLIC_ALLOW_UNAUTHORIZED_REQUESTS
ARG NEXT_PUBLIC_SENTRY_ENVIRONMENT
ARG NEXT_PUBLIC_SENTRY_DSN
Expand Down
2 changes: 1 addition & 1 deletion apps/events-helsinki/.jest/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jest.mock('next/head', () => {
// Mock the public runtime config
jest.mock('next/config', () => () => ({
publicRuntimeConfig: {
federationRouter: 'federation-router-url',
federationRouter: 'https://localhost/federationrouter/',
cmsOrigin: 'https://localhost/cms/graphql',
linkedEvents: 'linekdevents-url',
}
Expand Down
2 changes: 1 addition & 1 deletion apps/hobbies-helsinki/.jest/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jest.mock('next/head', () => {
// Mock the public runtime config
jest.mock('next/config', () => () => ({
publicRuntimeConfig: {
federationRouter: 'federation-router-url',
federationRouter: 'https://localhost/federationrouter/',
cmsOrigin: 'https://localhost/cms/graphql',
linkedEvents: 'linekdevents-url',
}
Expand Down
2 changes: 1 addition & 1 deletion apps/sports-helsinki/.jest/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jest.mock('next/head', () => {
// Mock the public runtime config
jest.mock('next/config', () => () => ({
publicRuntimeConfig: {
federationRouter: 'federation-router-url',
federationRouter: 'https://localhost/federationrouter/',
cmsOrigin: 'https://localhost/cms/graphql',
linkedEvents: 'linekdevents-url',
}
Expand Down
Loading