Skip to content

Commit

Permalink
Add lightweight YAML example to init (#650)
Browse files Browse the repository at this point in the history
Co-authored-by: shahzad31 <shahzad31comp@gmail.com>
  • Loading branch information
andrewvc and shahzad31 committed Nov 29, 2022
1 parent 1c05f22 commit 8fd252d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion __tests__/utils/test-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ export class CLIMock {
run(spawnOverrides?: { cwd?: string; env?: NodeJS.ProcessEnv }): CLIMock {
this.process = spawn(
'node',
[join(__dirname, '..', '..', 'dist', 'cli.js'), ...this.cliArgs],
[
'--no-warnings',
join(__dirname, '..', '..', 'dist', 'cli.js'),
...this.cliArgs,
],
{
env: process.env,
stdio: 'pipe',
Expand Down
5 changes: 5 additions & 0 deletions templates/journeys/lightweight-example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- type: http
name: Todos Lightweight
id: todos-lightweight
urls: "https://elastic.github.io/synthetics-demo/"
schedule: '@every 1m'

0 comments on commit 8fd252d

Please sign in to comment.