From 65186ebd1aae626ca38f6d012c9e32ae1d91dca6 Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Wed, 6 Mar 2024 17:40:22 -0800 Subject: [PATCH] chore: move tests/test_project -> tests/basic --- .github/workflows/test_project.yml | 8 ++++---- deno.jsonc | 2 +- docs/KNOWN_ISSUES.md | 4 +++- tests/{test_project => basic}/backend.yaml | 0 tests/{test_project => basic}/deno.json | 0 tests/{test_project => basic}/deno.lock | 0 .../foo/db/migrations/20240307013756_init/migration.sql | 0 .../modules/foo/db/migrations/migration_lock.toml | 0 .../{test_project => basic}/modules/foo/db/schema.prisma | 0 tests/{test_project => basic}/modules/foo/module.yaml | 0 .../modules/foo/scripts/call_self.ts | 0 .../modules/foo/scripts/create_entry.ts | 0 tests/{test_project => basic}/modules/foo/scripts/ping.ts | 0 tests/{test_project => basic}/modules/foo/tests/e2e.ts | 0 tests/{test_project => basic}/modules/foo/types/common.ts | 0 15 files changed, 8 insertions(+), 6 deletions(-) rename tests/{test_project => basic}/backend.yaml (100%) rename tests/{test_project => basic}/deno.json (100%) rename tests/{test_project => basic}/deno.lock (100%) rename tests/{test_project => basic}/modules/foo/db/migrations/20240307013756_init/migration.sql (100%) rename tests/{test_project => basic}/modules/foo/db/migrations/migration_lock.toml (100%) rename tests/{test_project => basic}/modules/foo/db/schema.prisma (100%) rename tests/{test_project => basic}/modules/foo/module.yaml (100%) rename tests/{test_project => basic}/modules/foo/scripts/call_self.ts (100%) rename tests/{test_project => basic}/modules/foo/scripts/create_entry.ts (100%) rename tests/{test_project => basic}/modules/foo/scripts/ping.ts (100%) rename tests/{test_project => basic}/modules/foo/tests/e2e.ts (100%) rename tests/{test_project => basic}/modules/foo/types/common.ts (100%) diff --git a/.github/workflows/test_project.yml b/.github/workflows/test_project.yml index 9c12eeeb..82ded9e0 100644 --- a/.github/workflows/test_project.yml +++ b/.github/workflows/test_project.yml @@ -26,13 +26,13 @@ jobs: run: deno task cli:install - name: Check Formatting - run: cd tests/test_project/ && opengb format --check + run: cd tests/basic/ && opengb format --check - name: Lint - run: cd tests/test_project/ && opengb lint + run: cd tests/basic/ && opengb lint - name: Generate DB Migrations - run: cd tests/test_project/ && opengb db dev + run: cd tests/basic/ && opengb db dev - name: Run Tests - run: cd tests/test_project/ && opengb test + run: cd tests/basic/ && opengb test diff --git a/deno.jsonc b/deno.jsonc index 01413297..7ca7a45f 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,7 +1,7 @@ { "tasks": { // Runs the CLI - "cli:run": "deno task artifacts:build:all && deno run -A --check src/cli/main.ts --path tests/test_project", + "cli:run": "deno task artifacts:build:all && deno run -A --check src/cli/main.ts --path tests/basic", // Compiles the CLI to a binary "cli:compile": "deno task artifacts:build:all && deno compile --check --allow-net --allow-read --allow-env --allow-run --allow-write --output _gen/cli src/cli/main.ts", diff --git a/docs/KNOWN_ISSUES.md b/docs/KNOWN_ISSUES.md index f380d73b..a58e5c4d 100644 --- a/docs/KNOWN_ISSUES.md +++ b/docs/KNOWN_ISSUES.md @@ -4,9 +4,11 @@ [typescript-json-schema#547](https://github.com/YousefED/typescript-json-schema/issues/547) +Will be fixed with [#15](https://github.com/rivet-gg/open-game-services-engine/issues/15). + ## Moving modules folder breaks imports ``` error: Module not found "file:///path/to/src/runtime/mod.ts". - at file:///path/to/tests/test_project/_gen/entrypoint.ts:3:25 + at file:///path/to/tests/basic/_gen/entrypoint.ts:3:25 ``` \ No newline at end of file diff --git a/tests/test_project/backend.yaml b/tests/basic/backend.yaml similarity index 100% rename from tests/test_project/backend.yaml rename to tests/basic/backend.yaml diff --git a/tests/test_project/deno.json b/tests/basic/deno.json similarity index 100% rename from tests/test_project/deno.json rename to tests/basic/deno.json diff --git a/tests/test_project/deno.lock b/tests/basic/deno.lock similarity index 100% rename from tests/test_project/deno.lock rename to tests/basic/deno.lock diff --git a/tests/test_project/modules/foo/db/migrations/20240307013756_init/migration.sql b/tests/basic/modules/foo/db/migrations/20240307013756_init/migration.sql similarity index 100% rename from tests/test_project/modules/foo/db/migrations/20240307013756_init/migration.sql rename to tests/basic/modules/foo/db/migrations/20240307013756_init/migration.sql diff --git a/tests/test_project/modules/foo/db/migrations/migration_lock.toml b/tests/basic/modules/foo/db/migrations/migration_lock.toml similarity index 100% rename from tests/test_project/modules/foo/db/migrations/migration_lock.toml rename to tests/basic/modules/foo/db/migrations/migration_lock.toml diff --git a/tests/test_project/modules/foo/db/schema.prisma b/tests/basic/modules/foo/db/schema.prisma similarity index 100% rename from tests/test_project/modules/foo/db/schema.prisma rename to tests/basic/modules/foo/db/schema.prisma diff --git a/tests/test_project/modules/foo/module.yaml b/tests/basic/modules/foo/module.yaml similarity index 100% rename from tests/test_project/modules/foo/module.yaml rename to tests/basic/modules/foo/module.yaml diff --git a/tests/test_project/modules/foo/scripts/call_self.ts b/tests/basic/modules/foo/scripts/call_self.ts similarity index 100% rename from tests/test_project/modules/foo/scripts/call_self.ts rename to tests/basic/modules/foo/scripts/call_self.ts diff --git a/tests/test_project/modules/foo/scripts/create_entry.ts b/tests/basic/modules/foo/scripts/create_entry.ts similarity index 100% rename from tests/test_project/modules/foo/scripts/create_entry.ts rename to tests/basic/modules/foo/scripts/create_entry.ts diff --git a/tests/test_project/modules/foo/scripts/ping.ts b/tests/basic/modules/foo/scripts/ping.ts similarity index 100% rename from tests/test_project/modules/foo/scripts/ping.ts rename to tests/basic/modules/foo/scripts/ping.ts diff --git a/tests/test_project/modules/foo/tests/e2e.ts b/tests/basic/modules/foo/tests/e2e.ts similarity index 100% rename from tests/test_project/modules/foo/tests/e2e.ts rename to tests/basic/modules/foo/tests/e2e.ts diff --git a/tests/test_project/modules/foo/types/common.ts b/tests/basic/modules/foo/types/common.ts similarity index 100% rename from tests/test_project/modules/foo/types/common.ts rename to tests/basic/modules/foo/types/common.ts