aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/vercel/test/split.test.js
diff options
context:
space:
mode:
authorGravatar Ming-jun Lu <40516784+mingjunlu@users.noreply.github.com> 2024-02-13 21:23:07 +0800
committerGravatar GitHub <noreply@github.com> 2024-02-13 13:23:07 +0000
commit37c75108e7b4b0c8feacadc0a1e49f58ebf8905d (patch)
tree7092c1bc786cd2267c23aa606b8897c9fae468a4 /packages/integrations/vercel/test/split.test.js
parenta326124f5a1267361b3d36af24bf042b2f1ac41f (diff)
downloadastro-37c75108e7b4b0c8feacadc0a1e49f58ebf8905d.tar.gz
astro-37c75108e7b4b0c8feacadc0a1e49f58ebf8905d.tar.zst
astro-37c75108e7b4b0c8feacadc0a1e49f58ebf8905d.zip
chore(@astrojs/vercel): migrate tests to `node:test` (#10010)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Diffstat (limited to 'packages/integrations/vercel/test/split.test.js')
-rw-r--r--packages/integrations/vercel/test/split.test.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/integrations/vercel/test/split.test.js b/packages/integrations/vercel/test/split.test.js
index 3f4e75d1b..172c27775 100644
--- a/packages/integrations/vercel/test/split.test.js
+++ b/packages/integrations/vercel/test/split.test.js
@@ -1,5 +1,6 @@
import { loadFixture } from './test-utils.js';
-import { expect } from 'chai';
+import assert from 'node:assert/strict';
+import { before, describe, it } from 'node:test';
describe('build: split', () => {
/** @type {import('./test-utils').Fixture} */
@@ -15,12 +16,12 @@ describe('build: split', () => {
it('creates separate functions for each page', async () => {
const files = await fixture.readdir('../.vercel/output/functions/');
- expect(files.length).to.equal(3);
+ assert.equal(files.length, 3);
});
it('creates the route definitions in the config.json', async () => {
const json = await fixture.readFile('../.vercel/output/config.json');
const config = JSON.parse(json);
- expect(config.routes).to.have.a.lengthOf(5);
+ assert.equal(config.routes.length, 5);
});
});