diff options
author | 2023-06-13 22:34:44 +0200 | |
---|---|---|
committer | 2023-06-13 16:34:44 -0400 | |
commit | 6d8aa4b61f22df2c5052d06dac8e53bbce73f5f5 (patch) | |
tree | c3fdf68f584bd77864600822530dc120e2d873f5 /packages/integrations/cloudflare/test/test-utils.js | |
parent | 3e1fbc2c8f1f19063815580583f3765cf678b1b6 (diff) | |
download | astro-6d8aa4b61f22df2c5052d06dac8e53bbce73f5f5.tar.gz astro-6d8aa4b61f22df2c5052d06dac8e53bbce73f5f5.tar.zst astro-6d8aa4b61f22df2c5052d06dac8e53bbce73f5f5.zip |
[Cloudflare integration] Expose cf metadata and Cloudflare caches API (#7386)
* Add cf and cache properties to runtime
* add changeset
* reorder import
* fix types and add tests
* fix package name
* test
Diffstat (limited to 'packages/integrations/cloudflare/test/test-utils.js')
-rw-r--r-- | packages/integrations/cloudflare/test/test-utils.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/integrations/cloudflare/test/test-utils.js b/packages/integrations/cloudflare/test/test-utils.js index b4628825c..399b97812 100644 --- a/packages/integrations/cloudflare/test/test-utils.js +++ b/packages/integrations/cloudflare/test/test-utils.js @@ -19,9 +19,9 @@ const wranglerPath = fileURLToPath( new URL('../node_modules/wrangler/bin/wrangler.js', import.meta.url) ); -export function runCLI(basePath, { silent }) { +export function runCLI(basePath, { silent, port = 8787 }) { const script = fileURLToPath(new URL(`${basePath}/dist/_worker.js`, import.meta.url)); - const p = spawn('node', [wranglerPath, 'dev', '-l', script]); + const p = spawn('node', [wranglerPath, 'dev', '-l', script, '--port', port]); p.stderr.setEncoding('utf-8'); p.stdout.setEncoding('utf-8'); |