cli: mock config in app template test
This commit is contained in:
@@ -4,6 +4,11 @@ import App from './App';
|
||||
|
||||
describe('App', () => {
|
||||
it('should render', () => {
|
||||
Object.defineProperty(process.env, 'APP_CONFIG', {
|
||||
configurable: true,
|
||||
value: [],
|
||||
});
|
||||
|
||||
const rendered = render(<App />);
|
||||
expect(rendered.baseElement).toBeInTheDocument();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user