Fix an issue where types/react was a different version from our main … (#231)

Co-authored-by: Brandon Keiji <brandonkeiji@google.com>
This commit is contained in:
Allen Hutchison
2025-04-30 16:33:43 -07:00
committed by GitHub
parent 2616e965a7
commit 976333f654
3 changed files with 765 additions and 5 deletions

View File

@@ -45,12 +45,14 @@
"yargs": "^17.7.2"
},
"devDependencies": {
"@testing-library/react": "^14.0.0",
"@types/diff": "^7.0.2",
"@types/dotenv": "^6.1.1",
"@types/node": "^20.11.24",
"@types/react": "^19.1.0",
"@types/react": "^18.3.1",
"@types/shell-quote": "^1.7.5",
"@types/yargs": "^17.0.32",
"jsdom": "^26.1.0",
"typescript": "^5.3.3",
"vitest": "^3.1.1"
},

View File

@@ -0,0 +1,15 @@
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/// <reference types="vitest" />
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
environment: 'jsdom',
globals: true, // Optional: enables global APIs like describe, it, expect
},
});