TypeScript在npm项目中如何进行单元测试?
Hello, {name}!
;
};
export default YourComponent;
```
```typescript
// your-component.test.ts
import React from 'react';
import { render } from '@testing-library/react';
import YourComponent from './your-component';
test('renders correctly', () => {
const { getByText } = render(猜你喜欢:OpenTelemetry