From 88b9e45349fb21e95438a71c4e9b51028987f0e1 Mon Sep 17 00:00:00 2001 From: Andreas Opferkuch Date: Sat, 11 Jan 2025 12:31:02 +0100 Subject: [PATCH] docs: use TS consistently in vitest instructions --- README.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7a3e06f..4235d24 100644 --- a/README.md +++ b/README.md @@ -156,11 +156,11 @@ use a different import in your tests setup file. This file should be added to the [`setupFiles`][vitest setupfiles] property in your vitest config: ```javascript -// In your own vitest-setup.js (or any other name) +// In your own vitest-setup.ts (or any other name) import '@testing-library/jest-dom/vitest' // In vitest.config.js add (if you haven't already) -setupFiles: ['./vitest-setup.js'] +setupFiles: ['./vitest-setup.ts'] ``` Also, depending on your local setup, you may need to update your @@ -171,11 +171,7 @@ Also, depending on your local setup, you may need to update your "compilerOptions": { ... "types": ["vitest/globals", "@testing-library/jest-dom"] - }, - "include": [ - ... - "./vitest.setup.ts" - ], + } ``` [vitest]: https://vitest.dev/