2
* Copyright 2020 The Backstage Authors
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
17
import { renderWithEffects } from '@backstage/test-utils';
19
jest.mock('@backstage/plugin-graphiql', () => ({
20
...jest.requireActual('@backstage/plugin-graphiql'),
21
GraphiQLIcon: () => null,
24
// Rarely, and only in windows CI, do these tests take slightly more than the
25
// default five seconds
26
jest.setTimeout(15_000);
28
describe('App', () => {
29
it('should render', async () => {
37
support: { url: 'http://localhost:7007/support' },
39
backend: { baseUrl: 'http://localhost:7007' },
41
baseUrl: 'http://localhost:3003',
44
storageUrl: 'http://localhost:7007/api/techdocs/static/docs',
52
const { default: app } = await import('./App');
53
const rendered = await renderWithEffects(app);
54
expect(rendered.baseElement).toBeInTheDocument();