@@ -28,6 +28,7 @@ describe('App', () => {
|
||||
app: {
|
||||
title: 'Test',
|
||||
support: { url: 'http://localhost:7007/support' },
|
||||
baseUrl: 'http://localhost:3000',
|
||||
},
|
||||
backend: { baseUrl: 'http://localhost:7007' },
|
||||
lighthouse: {
|
||||
|
||||
@@ -24,7 +24,13 @@ const anyEnv = (process.env = { ...process.env }) as any;
|
||||
describe('DevAppBuilder', () => {
|
||||
it('should be able to render a component in a dev app', async () => {
|
||||
anyEnv.APP_CONFIG = [
|
||||
{ context: 'test', data: { app: { title: 'Test App' } } },
|
||||
{
|
||||
context: 'test',
|
||||
data: {
|
||||
app: { title: 'Test App', baseUrl: 'http://localhost:3000' },
|
||||
backend: { baseUrl: 'http://localhost:7007' },
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
const MyComponent = () => {
|
||||
|
||||
@@ -22,7 +22,7 @@ jest.mock('./config', () => ({
|
||||
configLoader: async () => [
|
||||
{
|
||||
data: {
|
||||
app: { title: 'Test' },
|
||||
app: { title: 'Test', baseUrl: 'http://localhost:3000' },
|
||||
backend: { baseUrl: 'http://localhost:7007' },
|
||||
techdocs: {
|
||||
storageUrl: 'http://localhost:7007/api/techdocs/static/docs',
|
||||
|
||||
Reference in New Issue
Block a user