From 59ddde6d0b16aabb3dd4c8bd01256a7d59c9eee0 Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Mon, 16 Sep 2024 18:42:41 -0700 Subject: [PATCH] chore(tests): move backend.json -> rivet.json --- tests/basic/deno.lock | 15 ++++++++++++++ tests/basic/{backend.json => rivet.json} | 0 tests/basic/rivet.yaml | 26 ------------------------ tests/basic/server/src/index.ts | 2 +- 4 files changed, 16 insertions(+), 27 deletions(-) rename tests/basic/{backend.json => rivet.json} (100%) delete mode 100644 tests/basic/rivet.yaml diff --git a/tests/basic/deno.lock b/tests/basic/deno.lock index 6214b960..ca997679 100644 --- a/tests/basic/deno.lock +++ b/tests/basic/deno.lock @@ -4,7 +4,10 @@ "specifiers": { "jsr:@blackberry/bcrypt@0.15.3": "jsr:@blackberry/bcrypt@0.15.3", "jsr:@denosaurs/lz4@0.1.4": "jsr:@denosaurs/lz4@0.1.4", + "jsr:@std/assert": "jsr:@std/assert@1.0.5", + "jsr:@std/collections": "jsr:@std/collections@1.0.6", "jsr:@std/encoding@0.221": "jsr:@std/encoding@0.221.0", + "jsr:@std/internal@^1.0.3": "jsr:@std/internal@1.0.3", "npm:@prisma/adapter-pg@^5.12.0": "npm:@prisma/adapter-pg@5.18.0_pg@8.12.0", "npm:@types/node": "npm:@types/node@18.16.19", "npm:drizzle-orm@0.33.0": "npm:drizzle-orm@0.33.0_pg@8.12.0", @@ -27,8 +30,20 @@ "@denosaurs/lz4@0.1.4": { "integrity": "ad5d556c02eb01fe1e0f2e953d7be066a14870afe149b1aed1ced019460f6aa1" }, + "@std/assert@1.0.5": { + "integrity": "e37da8e4033490ce613eec4ac1d78dba1faf5b02a3f6c573a28f15365b9b440f", + "dependencies": [ + "jsr:@std/internal@^1.0.3" + ] + }, + "@std/collections@1.0.6": { + "integrity": "60ad252af7df0594e6455f697920a37cd523ad66469fefcc9735e362826ac01d" + }, "@std/encoding@0.221.0": { "integrity": "d1dd76ef0dc5d14088411e6dc1dede53bf8308c95d1537df1214c97137208e45" + }, + "@std/internal@1.0.3": { + "integrity": "208e9b94a3d5649bd880e9ca38b885ab7651ab5b5303a56ed25de4755fb7b11e" } }, "npm": { diff --git a/tests/basic/backend.json b/tests/basic/rivet.json similarity index 100% rename from tests/basic/backend.json rename to tests/basic/rivet.json diff --git a/tests/basic/rivet.yaml b/tests/basic/rivet.yaml deleted file mode 100644 index 9038aafd..00000000 --- a/tests/basic/rivet.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# yaml-language-server: $schema=https://rivet.gg/rivet.schema.json - -# ┌───────────────────────────────────────────────────────┐ -# │ │ -# │ This configuration file is empty. │ -# │ │ -# │ Get started: https://rivet.gg/learn/custom │ -# │ Reference: https://rivet.gg/docs/general/config │ -# │ │ -# └───────────────────────────────────────────────────────┘ - -engine: - html5: {} - -matchmaker: - max_players: 128 - tier: basic-1d8 - game_modes: - default: {} - docker: - dockerfile: server.Dockerfile - ports: - default: - port: 8080 - protocol: https - diff --git a/tests/basic/server/src/index.ts b/tests/basic/server/src/index.ts index fc61ddb7..1d24acd6 100644 --- a/tests/basic/server/src/index.ts +++ b/tests/basic/server/src/index.ts @@ -59,7 +59,7 @@ let gameConfig = { interface GameState { lobbyConfig: any; lobbyTags: any; - scores: { [id: number]: number }; + scores: Record; } const gameState: GameState = {