feat: 기능 추가 과정중
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
import type { ApplicationApi } from "../../../src/application/create-application.js";
|
||||
import type { ApplicationApi } from "../../../src/application/create-application.ts";
|
||||
|
||||
export const incompleteApplication: ApplicationApi = {
|
||||
session: {} as ApplicationApi["session"],
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import type { ApplicationOutputPorts } from "../../../src/application/create-application.js";
|
||||
import type { ApplicationOutputPorts } from "../../../src/application/create-application.ts";
|
||||
|
||||
export const invalidOutputPorts: ApplicationOutputPorts = {
|
||||
session: {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import type { AsyncOverlay } from "../../../src/application/view-models/async-state.js";
|
||||
import type { AsyncOverlay } from "../../../src/application/view-models/async-state.ts";
|
||||
|
||||
export const invalidPendingConflict: AsyncOverlay = {
|
||||
refreshing: false,
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import type { DiagnosticsPort } from "../../../src/application/ports/diagnostics-port.js";
|
||||
import type { TelemetryPort } from "../../../src/application/ports/telemetry-port.js";
|
||||
import type { DiagnosticsPort } from "../../../src/application/ports/diagnostics-port.ts";
|
||||
import type { TelemetryPort } from "../../../src/application/ports/telemetry-port.ts";
|
||||
|
||||
declare const diagnostics: DiagnosticsPort;
|
||||
declare const telemetry: TelemetryPort;
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
import type { AppFailure } from "../../../src/contracts/errors.ts";
|
||||
|
||||
export const invalidFailure: AppFailure = {
|
||||
kind: "UNREGISTERED_FAILURE",
|
||||
code: "UNREGISTERED_FAILURE",
|
||||
retryable: false,
|
||||
operationId: "TYPE_FIXTURE",
|
||||
attemptCount: 1,
|
||||
userMessageKey: "error.unknown_failure",
|
||||
action: "contact-support",
|
||||
};
|
||||
@@ -0,0 +1,8 @@
|
||||
import type { ApplicationApi } from "../../../src/application/ports/in/application-api.ts";
|
||||
import type { ReferenceFeatureInput } from "../../../src/features/reference-feature/application/reference-feature-api.ts";
|
||||
|
||||
declare const application: ApplicationApi;
|
||||
declare const referenceFeature: ReferenceFeatureInput;
|
||||
|
||||
application.features.get("not-installed");
|
||||
referenceFeature.listResources;
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
import { IconButton, MenuIcon } from "../../../src/presentation/design-system/index.js";
|
||||
import { IconButton, MenuIcon } from "../../../src/presentation/design-system/index.ts";
|
||||
|
||||
export const InvalidIconButton = <IconButton><MenuIcon /></IconButton>;
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
import { formatMessage } from "../../../src/presentation/i18n/index.js";
|
||||
import { formatMessage } from "../../../src/presentation/i18n/index.ts";
|
||||
|
||||
formatMessage("ko-KR", "unknown.translation.key");
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { formatMessage } from "../../../src/presentation/i18n/index.js";
|
||||
import { formatMessage } from "../../../src/presentation/i18n/index.ts";
|
||||
|
||||
formatMessage("en-US", "route.documentTitle");
|
||||
formatMessage("en-US", "route.documentTitle", { title: "Missing app name" });
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import type { PageActionDefinition } from "../../../src/presentation/templates/index.js";
|
||||
import type { PageActionDefinition } from "../../../src/presentation/templates/index.ts";
|
||||
|
||||
export const activeButtonWithoutCallback = {
|
||||
kind: "button",
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
// This deliberately failing fixture proves that checkJs rejects a wrong shape.
|
||||
|
||||
/** @param {{ operationId: string }} request */
|
||||
function execute(request) {
|
||||
return request.operationId;
|
||||
}
|
||||
|
||||
execute({ operationId: 42 });
|
||||
@@ -0,0 +1,7 @@
|
||||
// This deliberately failing fixture proves that TypeScript rejects a wrong shape.
|
||||
|
||||
function execute(request: { operationId: string }) {
|
||||
return request.operationId;
|
||||
}
|
||||
|
||||
execute({ operationId: 42 });
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { RawReferenceHttpExecutor } from "../../../src/features/reference-feature/adapters/reference-http-gateway.ts";
|
||||
|
||||
declare const http: RawReferenceHttpExecutor;
|
||||
|
||||
http.execute({
|
||||
operationId: "GET_REFERENCE_RESOURCE",
|
||||
routeId: "REFERENCE_RESOURCE_LIST",
|
||||
pathParams: { resourceId: "resource-1" },
|
||||
});
|
||||
+1
-3
@@ -1,6 +1,4 @@
|
||||
type Result<T, E> =
|
||||
| Readonly<{ ok: true; value: T }>
|
||||
| Readonly<{ ok: false; error: E }>;
|
||||
import type { Result } from "../../../src/application/result.ts";
|
||||
|
||||
export function invalidUnwrap(result: Result<number, string>): number {
|
||||
return result.value;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { ROUTE_RUNTIME_CONTRACT } from "../../../src/features/installed-feature-contracts.js";
|
||||
import { ROUTE_RUNTIME_CONTRACT } from "../../../src/features/installed-feature-contracts.ts";
|
||||
|
||||
type RouteId = keyof typeof ROUTE_RUNTIME_CONTRACT;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user