feat: support i18n for core component
Signed-off-by: rui ma <ruima@alauda.io>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
import { EntityProvider } from '@backstage/plugin-catalog-react';
|
||||
import { renderWithEffects, TestApiProvider } from '@backstage/test-utils';
|
||||
import { renderInTestApp, TestApiProvider } from '@backstage/test-utils';
|
||||
import React from 'react';
|
||||
import { TodoApi, todoApiRef } from '../../api';
|
||||
import { TodoList } from './TodoList';
|
||||
@@ -43,7 +43,7 @@ describe('TodoList', () => {
|
||||
kind: 'MockKind',
|
||||
} as Entity;
|
||||
|
||||
const rendered = await renderWithEffects(
|
||||
const rendered = await renderInTestApp(
|
||||
<TestApiProvider apis={[[todoApiRef, mockApi]]}>
|
||||
<EntityProvider entity={mockEntity}>
|
||||
<TodoList />
|
||||
|
||||
Reference in New Issue
Block a user