File tree Expand file tree Collapse file tree 3 files changed +0
-18
lines changed
Expand file tree Collapse file tree 3 files changed +0
-18
lines changed Original file line number Diff line number Diff line change 88
99import process from 'node:process'
1010
11- import { VITEST } from './vitest.mts'
12-
1311export function getCoanaVersion ( ) : string {
1412 const version = process . env [ 'INLINED_SOCKET_CLI_COANA_VERSION' ]
1513 if ( ! version ) {
16- // In test mode, return empty string instead of throwing.
17- if ( VITEST ) {
18- return ''
19- }
2014 throw new Error (
2115 'INLINED_SOCKET_CLI_COANA_VERSION not found. Please ensure @coana-tech/cli is properly configured in external-tools.json.' ,
2216 )
Original file line number Diff line number Diff line change 88
99import process from 'node:process'
1010
11- import { VITEST } from './vitest.mts'
12-
1311export function getSwfVersion ( ) : string {
1412 const version = process . env [ 'INLINED_SOCKET_CLI_SFW_VERSION' ]
1513 if ( ! version ) {
16- // In test mode, return empty string instead of throwing.
17- if ( VITEST ) {
18- return ''
19- }
2014 throw new Error (
2115 'INLINED_SOCKET_CLI_SFW_VERSION not found. Please ensure sfw is properly configured in external-tools.json.' ,
2216 )
Original file line number Diff line number Diff line change 88
99import process from 'node:process'
1010
11- import { VITEST } from './vitest.mts'
12-
1311export function getSocketPatchVersion ( ) : string {
1412 const version = process . env [ 'INLINED_SOCKET_CLI_SOCKET_PATCH_VERSION' ]
1513 if ( ! version ) {
16- // In test mode, return empty string instead of throwing.
17- if ( VITEST ) {
18- return ''
19- }
2014 throw new Error (
2115 'INLINED_SOCKET_CLI_SOCKET_PATCH_VERSION not found. Please ensure socket-patch is properly configured in external-tools.json.' ,
2216 )
You can’t perform that action at this time.
0 commit comments