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/functions/builders.test.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/functions/builders.test.js')
-rw-r--r-- | packages/integrations/netlify/test/functions/builders.test.js | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/packages/integrations/netlify/test/functions/builders.test.js b/packages/integrations/netlify/test/functions/builders.test.js index d47af92c0..e927527a1 100644 --- a/packages/integrations/netlify/test/functions/builders.test.js +++ b/packages/integrations/netlify/test/functions/builders.test.js @@ -1,23 +1,12 @@ import { expect } from 'chai'; -import { loadFixture, testIntegration } from './test-utils.js'; -import netlifyAdapter from '../../dist/index.js'; +import { cli } from './test-utils.js'; +import { fileURLToPath } from 'url'; -describe('Builders', () => { - /** @type {import('../../../astro/test/test-utils').Fixture} */ - let fixture; +const root = new URL('./fixtures/builders/', import.meta.url).toString(); +describe('Builders', () => { before(async () => { - fixture = await loadFixture({ - root: new URL('./fixtures/builders/', import.meta.url).toString(), - output: 'server', - adapter: netlifyAdapter({ - dist: new URL('./fixtures/builders/dist/', import.meta.url), - builders: true, - }), - site: `http://example.com`, - integrations: [testIntegration()], - }); - await fixture.build(); + await cli('build', '--root', fileURLToPath(root)); }); it('A route can set builders ttl', async () => { |