diff options
| author | Noritaka Kobayashi <[email protected]> | 2025-06-30 04:06:03 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-29 19:06:03 +0000 |
| commit | 9ae2595bfde85d24ae0330d50f97ce0a8e2dc374 (patch) | |
| tree | 7030ac61282d72181adfe404a07ce0bcad18a0a0 /packages/cli/src/config/settings.test.ts | |
| parent | 65a58c3b03aa79dfa67274beb694d530ec97f150 (diff) | |
refactor: remove unnecessary assertion (#2579)
Diffstat (limited to 'packages/cli/src/config/settings.test.ts')
| -rw-r--r-- | packages/cli/src/config/settings.test.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/cli/src/config/settings.test.ts b/packages/cli/src/config/settings.test.ts index efaddab3..e7565457 100644 --- a/packages/cli/src/config/settings.test.ts +++ b/packages/cli/src/config/settings.test.ts @@ -43,7 +43,6 @@ import stripJsonComments from 'strip-json-comments'; // Will be mocked separatel // These imports will get the versions from the vi.mock('./settings.js', ...) factory. import { - LoadedSettings, loadSettings, USER_SETTINGS_PATH, // This IS the mocked path. SETTINGS_DIRECTORY_NAME, // This is from the original module, but used by the mock. @@ -595,7 +594,7 @@ describe('Settings Loading and Merging', () => { describe('LoadedSettings class', () => { it('setValue should update the correct scope and recompute merged settings', () => { (mockFsExistsSync as Mock).mockReturnValue(false); - const loadedSettings = loadSettings(MOCK_WORKSPACE_DIR) as LoadedSettings; + const loadedSettings = loadSettings(MOCK_WORKSPACE_DIR); vi.mocked(fs.writeFileSync).mockImplementation(() => {}); // mkdirSync is mocked in beforeEach to return undefined, which is fine for void usage |
