Skip to content

Commit

Permalink
fix: unittests mock federation router url (#375)
Browse files Browse the repository at this point in the history
* fix: unittests mock federation router url
* build: dockerfileCache add args
  • Loading branch information
terovirtanen committed Jul 5, 2023
1 parent df3db91 commit eef3be1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
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

0 comments on commit eef3be1

Please sign in to comment.