UNPKG

samtsc

Version:

This project was put together to make working with the AWS SAM framework easier for developers. It simplifies working with the SAM framework, using real-time updates to lambda functions, layers and resources. This is done by **samtsc** connecting to the

13 lines (12 loc) 515 B
const testUtils = require('../test-utils/index'); const { SAMConfig } = require('./samconfig'); describe('System: samconfig', () => { test('Load And Override', () => { process.chdir('samples/stack_layer'); const samconfig = new SAMConfig(); expect(samconfig.environment).toBe('test'); samconfig.load({ environment: 'prod' }, '.build/root'); expect(samconfig.environment).toBe('prod'); expect(samconfig.stack_name).toBe('sample-stack-layer-prod'); }); });