From 41e855bf842e503fb1b178e94fbf257e25ef3535 Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 23 Sep 2025 15:29:00 +0800 Subject: [PATCH] fix(rsbuild-rstest): include @rstest/core/globals in types --- .vscode/settings.json | 5 ++++- rsbuild/react-rstest/tests/tsconfig.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index f5ca882b0..85b3b8121 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -20,5 +20,8 @@ }, "[typescript]": { "editor.defaultFormatter": "biomejs.biome" - } + }, + "cSpell.words": [ + "rstest" + ] } diff --git a/rsbuild/react-rstest/tests/tsconfig.json b/rsbuild/react-rstest/tests/tsconfig.json index 8a386d8ed..1a739e163 100644 --- a/rsbuild/react-rstest/tests/tsconfig.json +++ b/rsbuild/react-rstest/tests/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "../tsconfig.json", "compilerOptions": { - "types": ["@testing-library/jest-dom"] + "types": ["@testing-library/jest-dom", "@rstest/core/globals"] }, "include": ["./"] }