Move to Deno+Bunny.net, add a way to test webring locally.

This commit is contained in:
DS 2025-02-23 23:47:07 -08:00
parent 9f66f0b37b
commit 8670aa3412
33 changed files with 599 additions and 3360 deletions

View file

@ -1,7 +0,0 @@
import { describe, it, expect } from 'vitest';
describe('Hello World worker', () => {
it('succeeds simple test', async () => {
expect(1 + 1).toBe(2);
});
});

View file

@ -1,8 +0,0 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"types": ["@cloudflare/workers-types/experimental", "@cloudflare/vitest-pool-workers"]
},
"include": ["./**/*.ts", "../functions/env.d.ts"],
"exclude": []
}

7
test/webring_test.ts Normal file
View file

@ -0,0 +1,7 @@
import { assertEquals } from '@std/assert';
import { next } from '../src/webring.ts';
Deno.test(function nextTest() {
const nextEntry = next('main');
assertEquals(nextEntry.id, 'dslog');
});