sparse-intern-71089
09/27/2019, 5:39 PMflat-guitar-86436
09/27/2019, 5:41 PMBy running a program through this integration test framework, you can ensure:
Your project’s code is syntactically well formed and runs without errors. Your stack’s configuration and secrets settings work and are interpreted correctly.Your project can be successfully deployed to your cloud provider of choice. Your project can be successfully updated from its starting state to N other states.Your project can be successfully destroyed and removed from your cloud provider. As we will see soon, you can also leverage this framework to perform runtime validation.is really great direction
flat-guitar-86436
09/27/2019, 5:43 PMflat-guitar-86436
09/27/2019, 5:44 PMflat-guitar-86436
09/27/2019, 9:47 PMimport { pulumiCmd } from './pulumi-test.utilities';
describe('pulumi', () => {
it('should be installed', () => {
const cmd = pulumiCmd('version');
const out = cmd.stdout || cmd.stderr || '';
expect(out.toString()).toMatch(/v\d\.\d\.\d(.|\S)*/gi);
});
});
flat-guitar-86436
09/27/2019, 9:47 PM