diff options
author | 2023-07-17 15:12:41 +0200 | |
---|---|---|
committer | 2023-07-17 09:12:41 -0400 | |
commit | 27cd4316c448202f9c697259567b6f084e557fa2 (patch) | |
tree | 628107fd5e9423a6c2fc0e95978faf991ee0f603 /packages/integrations/cloudflare/test/directory-split.test.js | |
parent | 1c8a225a5bdde57a9f1abf8a517ae2c583e4652b (diff) | |
download | astro-27cd4316c448202f9c697259567b6f084e557fa2.tar.gz astro-27cd4316c448202f9c697259567b6f084e557fa2.tar.zst astro-27cd4316c448202f9c697259567b6f084e557fa2.zip |
fix(@astrojs/cloudflare): SSR split file renaming misses ts endpoints (#7568)
* fix bug, where ts files where not renamed correctly
* try to make rename logic more robust
* remove log
* update tests
* update changeset
* cleanup
* fix lint
* debug windows tests
* fix windows support
* fix cloudflare directory code
* use EventContext type
* improve for loop
* change changeset
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* change changeset
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Diffstat (limited to 'packages/integrations/cloudflare/test/directory-split.test.js')
-rw-r--r-- | packages/integrations/cloudflare/test/directory-split.test.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/integrations/cloudflare/test/directory-split.test.js b/packages/integrations/cloudflare/test/directory-split.test.js index 384543a4b..6e6b0bfe2 100644 --- a/packages/integrations/cloudflare/test/directory-split.test.js +++ b/packages/integrations/cloudflare/test/directory-split.test.js @@ -36,6 +36,9 @@ describe('Cloudflare SSR split', () => { expect(await fixture.pathExists('../functions/[person]/[car].js')).to.be.true; expect(await fixture.pathExists('../functions/files/[[path]].js')).to.be.true; expect(await fixture.pathExists('../functions/[language]/files/[[path]].js')).to.be.true; + expect(await fixture.pathExists('../functions/trpc/[trpc].js')).to.be.true; + expect(await fixture.pathExists('../functions/javascript.js')).to.be.true; + expect(await fixture.pathExists('../functions/test.json.js')).to.be.true; }); it('generates pre-rendered files', async () => { |