Reactjs 测试套件无法在jest中运行,错误为:未提供消息

Reactjs 测试套件无法在jest中运行,错误为:未提供消息,reactjs,jestjs,react-testing-library,ts-jest,Reactjs,Jestjs,React Testing Library,Ts Jest,在我的react上运行jest测试时,由于某些组件和其他组件工作正常,我收到了这个错误 import { App } from "../App"; import React from "react"; import { render } from '@testing-library/react'; import { act } from 'react-dom/test-utils'; describe('Render the app component'

在我的react上运行jest测试时,由于某些组件和其他组件工作正常,我收到了这个错误

import { App } from "../App";
import React from "react";
import { render } from '@testing-library/react';
import { act } from 'react-dom/test-utils';

describe('Render the app component', () => {

    test('Render without crash',async() => {
      await act(async () => {
      render(<App/>);
    });

    test('it should run',()=>{
      expect(2).toBe(2);
    })
});
});

考试通过了。

有人请站在这里吗有人请站在这里吗
import { App } from "../App";
import React from "react";
import { render } from '@testing-library/react';
import { act } from 'react-dom/test-utils';

describe('Render the app component', () => {
  
  test('it should run',()=>{
    expect(2).toBe(2);
  })


});