Skip to content

Commit cde67e5

Browse files
committed
fix(tests): correct UNKNOWN_ERROR import in errors.test.mts
- Import UNKNOWN_ERROR from @socketsecurity/lib/constants/core - Matches source code import location - Fixes 3 test failures related to undefined UNKNOWN_ERROR constant
1 parent 8383e7e commit cde67e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cli/src/utils/error/errors.test.mts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { fileURLToPath } from 'node:url'
44

55
import { describe, expect, it } from 'vitest'
66

7+
import { UNKNOWN_ERROR } from '@socketsecurity/lib/constants/core'
8+
79
import {
810
AuthError,
911
ConfigError,
@@ -19,7 +21,6 @@ import {
1921
NetworkError,
2022
RateLimitError,
2123
} from './errors.mts'
22-
import { UNKNOWN_ERROR } from '../../constants/errors.mts'
2324

2425
const __filename = fileURLToPath(import.meta.url)
2526
const __dirname = path.dirname(__filename)

0 commit comments

Comments
 (0)