diff options
| author | Allen Hutchison <[email protected]> | 2025-04-30 16:33:43 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-30 16:33:43 -0700 |
| commit | 976333f654ed891835f725f321e9b7716f6f5e61 (patch) | |
| tree | feb7fde751e6962eb48722698c8bf7295c4aacdd /packages/cli | |
| parent | 2616e965a7caa39d731bda881db5a2feb851aa34 (diff) | |
Fix an issue where types/react was a different version from our main … (#231)
Co-authored-by: Brandon Keiji <[email protected]>
Diffstat (limited to 'packages/cli')
| -rw-r--r-- | packages/cli/package.json | 4 | ||||
| -rw-r--r-- | packages/cli/vitest.config.ts | 15 |
2 files changed, 18 insertions, 1 deletions
diff --git a/packages/cli/package.json b/packages/cli/package.json index 0a5c327b..6f07f006 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -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" }, diff --git a/packages/cli/vitest.config.ts b/packages/cli/vitest.config.ts new file mode 100644 index 00000000..aac3ddb3 --- /dev/null +++ b/packages/cli/vitest.config.ts @@ -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 + }, +}); |
