fix schema import path

This commit is contained in:
dswbx
2025-07-07 16:09:29 +02:00
parent 43c8f14470
commit 88ec3432a0
97 changed files with 180 additions and 180 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import { dataConfigSchema } from "../../src/data/data-schema";
import * as proto from "../../src/data/prototype";
import { schemaToEm } from "../helper";
import { disableConsoleLog, enableConsoleLog } from "core/utils/test";
import { parse } from "core/object/schema";
import { parse } from "bknd/core";
beforeAll(disableConsoleLog);
afterAll(enableConsoleLog);
+1 -1
View File
@@ -2,7 +2,7 @@ import { describe, expect, test } from "bun:test";
import { Authenticator, type User, type UserPool } from "../../src/auth";
import { cookieConfig } from "../../src/auth/authenticate/Authenticator";
import { PasswordStrategy } from "../../src/auth/authenticate/strategies/PasswordStrategy";
import { parse } from "core/object/schema";
import { parse } from "bknd/core";
/*class MemoryUserPool implements UserPool {
constructor(private users: User[] = []) {}
+1 -1
View File
@@ -1,6 +1,6 @@
import { describe, expect, test } from "bun:test";
import { Registry } from "core";
import { s } from "core/object/schema";
import { s } from "bknd/core";
type Constructor<T> = new (...args: any[]) => T;
@@ -1,6 +1,6 @@
import { describe, expect, test } from "bun:test";
import { SchemaObject } from "../../../src/core";
import { s } from "core/object/schema";
import { s } from "bknd/core";
describe("SchemaObject", async () => {
test("basic", async () => {
+1 -1
View File
@@ -1,7 +1,7 @@
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
import { Guard } from "../../src/auth";
import { parse } from "core/object/schema";
import { parse } from "bknd/core";
import {
Entity,
type EntityData,
+1 -1
View File
@@ -1,5 +1,5 @@
import { afterAll, expect as bunExpect, describe, test } from "bun:test";
import { stripMark } from "core/object/schema";
import { stripMark } from "bknd/core";
import { Entity, EntityManager, PolymorphicRelation, TextField } from "../../src/data";
import { getDummyConnection } from "./helper";
+1 -1
View File
@@ -2,7 +2,7 @@ import { describe, expect, test } from "bun:test";
import { baseFieldConfigSchema, Field } from "../../../../src/data/fields/Field";
import { fieldTestSuite } from "data/fields/field-test-suite";
import { bunTestRunner } from "adapter/bun/test";
import { stripMark } from "core/object/schema";
import { stripMark } from "bknd/core";
describe("[data] Field", async () => {
class FieldSpec extends Field {
@@ -1,6 +1,6 @@
import { describe, expect, test } from "bun:test";
import { Entity, EntityIndex, Field } from "../../../../src/data";
import { s } from "core/object/schema";
import { s } from "bknd/core";
class TestField extends Field {
protected getSchema(): any {
+1 -1
View File
@@ -1,6 +1,6 @@
import { describe, expect, test } from "bun:test";
import { Flow, LogTask, SubFlowTask, RenderTask, Task } from "../../src/flows";
import { s } from "core/object/schema";
import { s } from "bknd/core";
export class StringifyTask<Output extends string> extends Task<
typeof StringifyTask.schema,
+1 -1
View File
@@ -1,7 +1,7 @@
import { describe, expect, test } from "bun:test";
import { Task } from "../../src/flows";
import { dynamic } from "../../src/flows/tasks/Task";
import { s } from "core/object/schema";
import { s } from "bknd/core";
describe.skip("Task", async () => {
test("resolveParams: template with parse", async () => {
+1 -1
View File
@@ -1,7 +1,7 @@
import { describe, expect, test } from "bun:test";
import { Hono } from "hono";
import { Event, EventManager } from "../../src/core/events";
import { s, parse } from "core/object/schema";
import { s, parse } from "bknd/core";
import { EventTrigger, Flow, HttpTrigger, type InputsMap, Task } from "../../src/flows";
import { dynamic } from "../../src/flows/tasks/Task";
+1 -1
View File
@@ -2,7 +2,7 @@
import { describe, expect, test } from "bun:test";
import { isEqual } from "lodash-es";
import { _jsonp, withDisabledConsole } from "../../src/core/utils";
import { s } from "core/object/schema";
import { s } from "bknd/core";
import { Condition, ExecutionEvent, FetchTask, Flow, LogTask, Task } from "../../src/flows";
/*beforeAll(disableConsoleLog);
+1 -1
View File
@@ -1,5 +1,5 @@
import { beforeEach, describe, expect, test } from "bun:test";
import { parse } from "core/object/schema";
import { parse } from "bknd/core";
import { fieldsSchema } from "../../src/data/data-schema";
import { AppData, type ModuleBuildContext } from "../../src/modules";
import { makeCtx, moduleTestSuite } from "./module-test-suite";
+1 -1
View File
@@ -1,5 +1,5 @@
import { describe, expect, test } from "bun:test";
import { s, stripMark } from "core/object/schema";
import { s, stripMark } from "bknd/core";
import { EntityManager, em, entity, index, text } from "../../src/data";
import { DummyConnection } from "../../src/data/connection/DummyConnection";
import { Module } from "../../src/modules/Module";
+1 -1
View File
@@ -5,7 +5,7 @@ import { Module } from "modules/Module";
import { type ConfigTable, getDefaultConfig, ModuleManager } from "modules/ModuleManager";
import { CURRENT_VERSION, TABLE_NAME } from "modules/migrations";
import { getDummyConnection } from "../helper";
import { s, stripMark } from "core/object/schema";
import { s, stripMark } from "bknd/core";
describe("ModuleManager", async () => {
test("s1: no config, no build", async () => {