#!/usr/bin/env node
import assert from 'assert';
import os from 'os';
import path from 'path';

process.env.VLCODE_APP_VERSION = '9.9.9-test';
process.env.VLCODE_APP_ROOT = path.join(os.tmpdir(), 'vlcode-missing-app-root');

const { APP_VERSION } = await import('./src/utils/config.js');

assert.equal(APP_VERSION, '9.9.9-test');
console.log('\n── Packaged Config Version ──');
console.log('PASS test-packaged-config-version.js');
