Migrate Node -> Bun (#1827)

* Initial

* Faster user page

* Remove redundant function

* Favorite badge sorting

* Upgrade deps

* Simplify entry.server

* Bun tests initial

* Update package.json npm -> bun

* Update README

* Type safe translations again

* Don't load streams info for finalized tournaments

* Translations as an object

* More unit test work

* Convert match.server.test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* Test & all done

* Working cf

* Bun GA try

* No cache

* spacing

* spacing 2

* Add SQL logging

* Remove NR

* Hmm

* Hmm 2

* Interesting

* SKALOP_SYSTEM_MESSAGE_URL

* .

* .

* ?

* .

* ?

* Server.ts adjust

* Downgrade Tldraw

* E2E test fix

* Fix lint
This commit is contained in:
Kalle
2024-08-11 16:09:41 +03:00
committed by GitHub
parent 440e9baab3
commit 700a309e7f
111 changed files with 5193 additions and 31742 deletions

View File

@@ -1,15 +1,14 @@
import { suite } from "uvu";
import * as assert from "uvu/assert";
import { describe, expect, test } from "bun:test";
import { pathnameFromPotentialURL } from "./strings";
const PathnameFromPotentialURL = suite("pathnameFromPotentialURL()");
describe("pathnameFromPotentialURL()", () => {
test("Resolves path name from valid URL", () => {
expect(pathnameFromPotentialURL("https://twitter.com/sendouc")).toBe(
"sendouc",
);
});
PathnameFromPotentialURL("Resolves path name from valid URL", () => {
assert.is(pathnameFromPotentialURL("https://twitter.com/sendouc"), "sendouc");
test("Returns string as is if not URL", () => {
expect(pathnameFromPotentialURL("sendouc")).toBe("sendouc");
});
});
PathnameFromPotentialURL("Returns string as is if not URL", () => {
assert.is(pathnameFromPotentialURL("sendouc"), "sendouc");
});
PathnameFromPotentialURL.run();