Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions blog/vitest-react-testing-library/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ npm install jsdom --save-dev
Second, include it to the Vite configuration file:

```javascript{7-9}
import { defineConfig } from 'vite';
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';

// https://vitejs.dev/config/
Expand Down Expand Up @@ -99,7 +99,7 @@ afterEach(() => {
And last, include this new test setup file in Vite's configuration file. In addition, make all imports from Vitest global, so that you don't need to perform these imports (e.g. `expect`) in each file manually anymore:

```javascript{8,10}
import { defineConfig } from 'vite';
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';

// https://vitejs.dev/config/
Expand Down