Project started 🥂
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { expect, test } from '@rstest/core';
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import App from '../src/App';
|
||||
|
||||
test('renders the main page', () => {
|
||||
const testMessage = 'Rsbuild with React';
|
||||
render(<App />);
|
||||
expect(screen.getByText(testMessage)).toBeInTheDocument();
|
||||
});
|
||||
@@ -0,0 +1,4 @@
|
||||
import { expect } from '@rstest/core';
|
||||
import * as jestDomMatchers from '@testing-library/jest-dom/matchers';
|
||||
|
||||
expect.extend(jestDomMatchers);
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"types": ["@testing-library/jest-dom"]
|
||||
},
|
||||
"include": ["./"]
|
||||
}
|
||||
Reference in New Issue
Block a user