diff options
author | 2022-04-19 11:22:15 -0400 | |
---|---|---|
committer | 2022-04-19 11:22:15 -0400 | |
commit | 4cf54c60aa63bd614b242da0602790015005673d (patch) | |
tree | 25fcec1da64890044742a1090b1773076a0d43e9 /packages/integrations/netlify/test/dynamic-route.test.js | |
parent | c35e94f5443d4ade07ff787d39b042eb3b9004fb (diff) | |
download | astro-4cf54c60aa63bd614b242da0602790015005673d.tar.gz astro-4cf54c60aa63bd614b242da0602790015005673d.tar.zst astro-4cf54c60aa63bd614b242da0602790015005673d.zip |
Netlify Edge function support (#3148)
* Netlify Edge function support
* Update readme with edge function information
* Adds a changeset
* Disable running edge function test in CI for now
Diffstat (limited to 'packages/integrations/netlify/test/dynamic-route.test.js')
-rw-r--r-- | packages/integrations/netlify/test/dynamic-route.test.js | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/packages/integrations/netlify/test/dynamic-route.test.js b/packages/integrations/netlify/test/dynamic-route.test.js deleted file mode 100644 index 18d8b8ec2..000000000 --- a/packages/integrations/netlify/test/dynamic-route.test.js +++ /dev/null @@ -1,39 +0,0 @@ -import { expect } from 'chai'; -import { load as cheerioLoad } from 'cheerio'; -import { loadFixture } from '../../../astro/test/test-utils.js'; -import netlifyAdapter from '../dist/index.js'; -import { fileURLToPath } from 'url'; - -// Asset bundling -describe('Dynamic pages', () => { - /** @type {import('../../../astro/test/test-utils').Fixture} */ - let fixture; - - before(async () => { - fixture = await loadFixture({ - root: new URL('./fixtures/dynamic-route/', import.meta.url).toString(), - experimental: { - ssr: true, - }, - adapter: netlifyAdapter({ - dist: new URL('./fixtures/dynamic-route/dist/', import.meta.url), - }), - site: `http://example.com`, - vite: { - resolve: { - alias: { - '@astrojs/netlify/netlify-functions.js': fileURLToPath( - new URL('../dist/netlify-functions.js', import.meta.url) - ), - }, - }, - }, - }); - await fixture.build(); - }); - - it('Dynamic pages are included in the redirects file', async () => { - const redir = await fixture.readFile('/_redirects'); - expect(redir).to.match(/\/products\/\*/); - }); -}); |