summaryrefslogtreecommitdiff
path: root/packages/integrations/netlify/test/functions/cookies.test.js
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2023-09-25 15:52:27 -0400
committerGravatar Alexander Niebuhr <alexander@nbhr.io> 2023-10-15 08:36:37 +0200
commit1e0610b088a518ea257287da9d1bc0ccd15cb522 (patch)
treeb970fe5815dea1d5386e645e232a902cd83c022b /packages/integrations/netlify/test/functions/cookies.test.js
parentb750be65ff69c5c219f3f74abbc1e6f8a64e6830 (diff)
downloadastro-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/cookies.test.js')
-rw-r--r--packages/integrations/netlify/test/functions/cookies.test.js20
1 files changed, 5 insertions, 15 deletions
diff --git a/packages/integrations/netlify/test/functions/cookies.test.js b/packages/integrations/netlify/test/functions/cookies.test.js
index f15695235..328294d10 100644
--- a/packages/integrations/netlify/test/functions/cookies.test.js
+++ b/packages/integrations/netlify/test/functions/cookies.test.js
@@ -1,22 +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('Cookies', () => {
- /** @type {import('../../../astro/test/test-utils').Fixture} */
- let fixture;
+const root = new URL('./fixtures/cookies/', import.meta.url).toString();
+describe('Cookies', () => {
before(async () => {
- fixture = await loadFixture({
- root: new URL('./fixtures/cookies/', import.meta.url).toString(),
- output: 'server',
- adapter: netlifyAdapter({
- dist: new URL('./fixtures/cookies/dist/', import.meta.url),
- }),
- site: `http://example.com`,
- integrations: [testIntegration()],
- });
- await fixture.build();
+ await cli('build', '--root', fileURLToPath(root));
});
it('Can set multiple', async () => {