diff options
author | 2023-09-25 15:52:27 -0400 | |
---|---|---|
committer | 2023-10-15 08:36:37 +0200 | |
commit | 1e0610b088a518ea257287da9d1bc0ccd15cb522 (patch) | |
tree | b970fe5815dea1d5386e645e232a902cd83c022b /packages/integrations/netlify/test/test-utils.js | |
parent | b750be65ff69c5c219f3f74abbc1e6f8a64e6830 (diff) | |
download | astro-1e0610b088a518ea257287da9d1bc0ccd15cb522.tar.gz astro-1e0610b088a518ea257287da9d1bc0ccd15cb522.tar.zst astro-1e0610b088a518ea257287da9d1bc0ccd15cb522.zip |
chore(netlify): fixes after migration
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/netlify/test/test-utils.js')
-rw-r--r-- | packages/integrations/netlify/test/test-utils.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/integrations/netlify/test/test-utils.js b/packages/integrations/netlify/test/test-utils.js new file mode 100644 index 000000000..5ec8b49ba --- /dev/null +++ b/packages/integrations/netlify/test/test-utils.js @@ -0,0 +1,12 @@ +import { execa } from 'execa'; + +/** Returns a process running the Astro CLI. */ +export function cli(/** @type {string[]} */ ...args) { + const spawned = execa('npx', ['astro', ...args], { + env: { ASTRO_TELEMETRY_DISABLED: true }, + }); + + spawned.stdout.setEncoding('utf8'); + + return spawned; +}
\ No newline at end of file |