fix(qenv): replace smartfile-based config loading with native fs and yaml parsing for env files
This commit is contained in:
+3
-2
@@ -88,7 +88,8 @@ tap.test('should throw error for undefined in strict mode', async () => {
|
||||
await testQenv.getEnvVarOnDemandStrict('NON_EXISTENT_VAR');
|
||||
} catch (error) {
|
||||
threwError = true;
|
||||
expect(error.message).toContain('is not set');
|
||||
const errorMessage = error instanceof Error ? error.message : String(error);
|
||||
expect(errorMessage).toContain('is not set');
|
||||
}
|
||||
expect(threwError).toBeTrue();
|
||||
|
||||
@@ -116,4 +117,4 @@ tap.test('should handle array of env vars with falsy values', async () => {
|
||||
delete process.env['SECOND_VAR'];
|
||||
});
|
||||
|
||||
export default tap.start();
|
||||
export default tap.start();
|
||||
|
||||
+1
-1
@@ -32,4 +32,4 @@ tap.test('keyValueObjectArray should hold all retrieved values', async () => {
|
||||
expect(await testQenv.keyValueObject.key2).toEqual('fromJson');
|
||||
});
|
||||
|
||||
tap.start();
|
||||
export default tap.start();
|
||||
|
||||
Reference in New Issue
Block a user