feat: set beta version
This commit is contained in:
@@ -3,9 +3,9 @@ import "fake-indexeddb/auto";
|
||||
import { delay } from "@std/async";
|
||||
import { afterAll, describe } from "@std/testing/bdd";
|
||||
|
||||
import { BrowserAdapter } from "../../adapters/browser/adapter.ts";
|
||||
import { EventStore, EventStoreHooks } from "../../libraries/event-store.ts";
|
||||
import { Projector } from "../../libraries/projector.ts";
|
||||
import { BrowserAdapter } from "../adapters/browser/adapter.ts";
|
||||
import { EventStore, EventStoreHooks } from "../libraries/event-store.ts";
|
||||
import { Projector } from "../libraries/projector.ts";
|
||||
import { aggregates } from "./mocks/aggregates.ts";
|
||||
import { events, EventStoreFactory } from "./mocks/events.ts";
|
||||
import testAddEvent from "./store/add-event.ts";
|
||||
@@ -2,9 +2,9 @@ import "fake-indexeddb/auto";
|
||||
|
||||
import { describe } from "@std/testing/bdd";
|
||||
|
||||
import { BrowserAdapter } from "../../adapters/browser/adapter.ts";
|
||||
import { EventStore, EventStoreHooks } from "../../libraries/event-store.ts";
|
||||
import { Projector } from "../../libraries/projector.ts";
|
||||
import { BrowserAdapter } from "../adapters/browser/adapter.ts";
|
||||
import { EventStore, EventStoreHooks } from "../libraries/event-store.ts";
|
||||
import { Projector } from "../libraries/projector.ts";
|
||||
import { aggregates } from "./mocks/aggregates.ts";
|
||||
import { events, EventStoreFactory } from "./mocks/events.ts";
|
||||
import testAddEvent from "./store/add-event.ts";
|
||||
@@ -1,7 +1,7 @@
|
||||
import { AggregateRoot } from "../../../libraries/aggregate.ts";
|
||||
import { AggregateFactory } from "../../../libraries/aggregate-factory.ts";
|
||||
import { makeId } from "../../../libraries/nanoid.ts";
|
||||
import { makeAggregateReducer } from "../../../libraries/reducer.ts";
|
||||
import { AggregateRoot } from "../../libraries/aggregate.ts";
|
||||
import { AggregateFactory } from "../../libraries/aggregate-factory.ts";
|
||||
import { makeId } from "../../libraries/nanoid.ts";
|
||||
import { makeAggregateReducer } from "../../libraries/reducer.ts";
|
||||
import { EventStoreFactory } from "./events.ts";
|
||||
|
||||
export class User extends AggregateRoot<EventStoreFactory> {
|
||||
@@ -1,7 +1,7 @@
|
||||
import z from "zod";
|
||||
|
||||
import { event } from "../../../libraries/event.ts";
|
||||
import { EventFactory } from "../../../libraries/event-factory.ts";
|
||||
import { event } from "../../libraries/event.ts";
|
||||
import { EventFactory } from "../../libraries/event-factory.ts";
|
||||
|
||||
export const auditor = z.strictObject({ auditor: z.string() });
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { makeReducer } from "../../../libraries/reducer.ts";
|
||||
import { makeReducer } from "../../libraries/reducer.ts";
|
||||
import { EventStoreFactory } from "./events.ts";
|
||||
|
||||
export const userPostReducer = makeReducer<EventStoreFactory, UserPostState>(
|
||||
@@ -1,4 +1,4 @@
|
||||
import { makeReducer } from "../../../libraries/reducer.ts";
|
||||
import { makeReducer } from "../../libraries/reducer.ts";
|
||||
import { EventStoreFactory } from "./events.ts";
|
||||
|
||||
export const userReducer = makeReducer<EventStoreFactory, UserState>(
|
||||
@@ -1,9 +1,9 @@
|
||||
import { afterAll, afterEach, beforeAll, describe } from "@std/testing/bdd";
|
||||
import { MongoTestContainer } from "@valkyr/testcontainers/mongodb";
|
||||
|
||||
import { MongoAdapter, register } from "../../adapters/mongo/adapter.ts";
|
||||
import { EventStore, EventStoreHooks } from "../../libraries/event-store.ts";
|
||||
import { Projector } from "../../libraries/projector.ts";
|
||||
import { MongoAdapter, register } from "../adapters/mongo/adapter.ts";
|
||||
import { EventStore, EventStoreHooks } from "../libraries/event-store.ts";
|
||||
import { Projector } from "../libraries/projector.ts";
|
||||
import { aggregates } from "./mocks/aggregates.ts";
|
||||
import { events, EventStoreFactory } from "./mocks/events.ts";
|
||||
import testAddEvent from "./store/add-event.ts";
|
||||
@@ -2,10 +2,10 @@ import { afterAll, afterEach, beforeAll, describe } from "@std/testing/bdd";
|
||||
import { PostgresTestContainer } from "@valkyr/testcontainers/postgres";
|
||||
import postgres from "postgres";
|
||||
|
||||
import { PostgresAdapter } from "../../adapters/postgres/adapter.ts";
|
||||
import type { PostgresConnection } from "../../adapters/postgres/connection.ts";
|
||||
import { EventStore, type EventStoreHooks } from "../../libraries/event-store.ts";
|
||||
import { Projector } from "../../libraries/projector.ts";
|
||||
import { PostgresAdapter } from "../adapters/postgres/adapter.ts";
|
||||
import type { PostgresConnection } from "../adapters/postgres/connection.ts";
|
||||
import { EventStore, type EventStoreHooks } from "../libraries/event-store.ts";
|
||||
import { Projector } from "../libraries/projector.ts";
|
||||
import { aggregates } from "./mocks/aggregates.ts";
|
||||
import { events, EventStoreFactory } from "./mocks/events.ts";
|
||||
import testAddEvent from "./store/add-event.ts";
|
||||
@@ -1,8 +1,8 @@
|
||||
import { assertEquals, assertObjectMatch, assertRejects } from "@std/assert";
|
||||
import { it } from "@std/testing/bdd";
|
||||
|
||||
import { EventInsertionError, EventValidationError } from "../../../libraries/errors.ts";
|
||||
import { makeId } from "../../../libraries/nanoid.ts";
|
||||
import { EventInsertionError, EventValidationError } from "../../libraries/errors.ts";
|
||||
import { makeId } from "../../libraries/nanoid.ts";
|
||||
import type { EventStoreFactory } from "../mocks/events.ts";
|
||||
import { describe } from "../utilities/describe.ts";
|
||||
|
||||
@@ -2,7 +2,7 @@ import { assertEquals, assertObjectMatch, assertRejects } from "@std/assert";
|
||||
import { it } from "@std/testing/bdd";
|
||||
import { nanoid } from "nanoid";
|
||||
|
||||
import { EventValidationError } from "../../../mod.ts";
|
||||
import { EventValidationError } from "../../mod.ts";
|
||||
import type { EventStoreFactory } from "../mocks/events.ts";
|
||||
import { userReducer } from "../mocks/user-reducer.ts";
|
||||
import { describe } from "../utilities/describe.ts";
|
||||
@@ -1,7 +1,7 @@
|
||||
import { assertEquals, assertLess } from "@std/assert";
|
||||
import { it } from "@std/testing/bdd";
|
||||
|
||||
import { RelationPayload } from "../../../types/adapter.ts";
|
||||
import { RelationPayload } from "../../types/adapter.ts";
|
||||
import type { EventStoreFactory } from "../mocks/events.ts";
|
||||
import { describe } from "../utilities/describe.ts";
|
||||
|
||||
@@ -2,7 +2,7 @@ import { assertEquals } from "@std/assert";
|
||||
import { it } from "@std/testing/bdd";
|
||||
import { nanoid } from "nanoid";
|
||||
|
||||
import { makeId } from "../../../libraries/nanoid.ts";
|
||||
import { makeId } from "../../libraries/nanoid.ts";
|
||||
import type { EventStoreFactory } from "../mocks/events.ts";
|
||||
import { userPostReducer } from "../mocks/user-posts-reducer.ts";
|
||||
import { userReducer } from "../mocks/user-reducer.ts";
|
||||
@@ -1,7 +1,7 @@
|
||||
import { assertEquals, assertObjectMatch } from "@std/assert";
|
||||
import { it } from "@std/testing/bdd";
|
||||
|
||||
import { makeId } from "../../../libraries/nanoid.ts";
|
||||
import { makeId } from "../../libraries/nanoid.ts";
|
||||
import type { EventStoreFactory } from "../mocks/events.ts";
|
||||
import { describe } from "../utilities/describe.ts";
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { describe as desc } from "@std/testing/bdd";
|
||||
|
||||
import { EventFactory } from "../../../libraries/event-factory.ts";
|
||||
import { EventStore, type EventStoreHooks } from "../../../libraries/event-store.ts";
|
||||
import { Projector } from "../../../libraries/projector.ts";
|
||||
import { EventFactory } from "../../libraries/event-factory.ts";
|
||||
import { EventStore, type EventStoreHooks } from "../../libraries/event-store.ts";
|
||||
import { Projector } from "../../libraries/projector.ts";
|
||||
|
||||
export function describe<TEventFactory extends EventFactory>(
|
||||
name: string,
|
||||
Reference in New Issue
Block a user