deploy: v0.12 fix 存档key名

This commit is contained in:
2026-06-24 03:09:02 +00:00
parent 7a08d49fe3
commit e0a5281119
58743 changed files with 7297269 additions and 39505 deletions
@@ -0,0 +1,10 @@
import * as React from "react";
import type { Test } from "./Tests";
export interface Describe {
name: string;
tests: Record<string, Test>;
describes: Record<string, Describe>;
}
export declare const Describes: React.FC<{
describes: Describe[];
}>;
@@ -0,0 +1,8 @@
import type { TestError } from "@codesandbox/sandpack-client";
import * as React from "react";
interface Props {
error: TestError;
path: string;
}
export declare const FormattedError: React.FC<Props>;
export {};
@@ -0,0 +1,17 @@
import * as React from "react";
import type { Status } from "./SandpackTests";
interface Props {
setVerbose: () => void;
setSuiteOnly: () => void;
verbose: boolean;
suiteOnly: boolean;
status: Status;
watchMode: boolean;
setWatchMode: () => void;
showSuitesOnly: boolean;
showVerboseButton: boolean;
showWatchButton: boolean;
hideTestsAndSupressLogs: boolean;
}
export declare const Header: React.FC<Props>;
export {};
@@ -0,0 +1,4 @@
import * as React from "react";
export declare const RunButton: React.FC<{
onClick: () => void;
}>;
@@ -0,0 +1,17 @@
import * as React from "react";
import type { Spec } from "./Specs";
export type Status = "initialising" | "idle" | "running" | "complete";
export declare const SandpackTests: React.FC<{
verbose?: boolean;
watchMode?: boolean;
onComplete?: (specs: Record<string, Spec>) => void;
actionsChildren?: JSX.Element;
showVerboseButton?: boolean;
showWatchButton?: boolean;
/**
* Hide the tests and supress logs
* If `true` the tests will be hidden and the logs will be supressed. This is useful when you want to run tests in the background and don't want to show the tests to the user.
* @default false
*/
hideTestsAndSupressLogs?: boolean;
} & React.HtmlHTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,16 @@
import type { TestError } from "@codesandbox/sandpack-client";
import * as React from "react";
import type { Describe } from "./Describes";
import type { Status } from "./SandpackTests";
export type Spec = {
error?: TestError;
} & Describe;
interface Props {
specs: Spec[];
verbose: boolean;
status: Status;
openSpec: (name: string) => void;
hideTestsAndSupressLogs?: boolean;
}
export declare const Specs: React.FC<Props>;
export {};
@@ -0,0 +1,19 @@
import * as React from "react";
export interface TestResults {
pass: number;
fail: number;
skip: number;
total: number;
}
export interface SuiteResults {
pass: number;
fail: number;
total: number;
}
interface Props {
suites: SuiteResults;
tests: TestResults;
duration: number;
}
export declare const Summary: React.FC<Props>;
export {};
@@ -0,0 +1,16 @@
import type { TestError } from "@codesandbox/sandpack-client";
import React from "react";
type TestStatus = "idle" | "running" | "pass" | "fail";
export interface Test {
name: string;
blocks: string[];
status: TestStatus;
path: string;
errors: TestError[];
duration?: number | undefined;
}
interface SandpackTests extends React.HtmlHTMLAttributes<HTMLDivElement> {
tests: Test[];
}
export declare const Tests: React.FC<SandpackTests>;
export {};
@@ -0,0 +1 @@
export { SandpackTests } from "./SandpackTests";
@@ -0,0 +1,36 @@
export declare const setTestTheme: (isDark: boolean) => Record<string, string>;
export declare const passTextClassName: string & {
className: string;
selector: string;
props: {};
};
export declare const failTextClassName: string & {
className: string;
selector: string;
props: {};
};
export declare const skipTextClassName: string & {
className: string;
selector: string;
props: {};
};
export declare const titleTextClassName: string & {
className: string;
selector: string;
props: {};
};
export declare const runBackgroundClassName: string & {
className: string;
selector: string;
props: {};
};
export declare const passBackgroundClassName: string & {
className: string;
selector: string;
props: {};
};
export declare const failBackgroundClassName: string & {
className: string;
selector: string;
props: {};
};
@@ -0,0 +1,13 @@
import type { Describe } from "./Describes";
import type { Spec } from "./Specs";
import type { SuiteResults, TestResults } from "./Summary";
import type { Test } from "./Tests";
export declare const getFailingTests: (block: Describe | Spec) => Test[];
export declare const getAllTestResults: (specs: Spec[]) => TestResults;
export declare const getSpecTestResults: (spec: Spec) => TestResults;
export declare const getAllSuiteResults: (specs: Spec[]) => SuiteResults;
export declare const getDuration: (specs: Spec[]) => number;
export declare const isEmpty: (block: Spec | Describe) => boolean;
export declare const splitTail: <A>(as: A[]) => [A[], A | undefined];
export declare const flatMap: <A, B>(as: A[], f: (a: A) => B[]) => B[];
export declare const set: (path: string[], value: unknown) => <A extends Record<string, any>>(object: A) => A;