aboutsummaryrefslogtreecommitdiff
path: root/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.d.ts')
-rw-r--r--node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.d.ts36
1 files changed, 36 insertions, 0 deletions
diff --git a/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.d.ts b/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.d.ts
new file mode 100644
index 0000000..b09ec31
--- /dev/null
+++ b/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.d.ts
@@ -0,0 +1,36 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+/// <reference types="node" />
+import type { JestEnvironment } from '@jest/environment';
+import { TestFileEvent, TestResult } from '@jest/test-result';
+import type { Config, Global } from '@jest/types';
+import { SnapshotStateType } from 'jest-snapshot';
+import globals from '..';
+import { Expect } from './jestExpect';
+declare type Process = NodeJS.Process;
+interface JestGlobals extends Global.TestFrameworkGlobals {
+ expect: Expect;
+}
+export declare const initialize: ({ config, environment, globalConfig, localRequire, parentProcess, sendMessageToJest, setGlobalsForRuntime, testPath, }: {
+ config: Config.ProjectConfig;
+ environment: JestEnvironment;
+ globalConfig: Config.GlobalConfig;
+ localRequire: <T = unknown>(path: Config.Path) => T;
+ testPath: Config.Path;
+ parentProcess: Process;
+ sendMessageToJest?: TestFileEvent<"test-file-start" | "test-file-success" | "test-file-failure" | "test-case-result"> | undefined;
+ setGlobalsForRuntime: (globals: JestGlobals) => void;
+}) => Promise<{
+ globals: Global.TestFrameworkGlobals;
+ snapshotState: SnapshotStateType;
+}>;
+export declare const runAndTransformResultsToJestFormat: ({ config, globalConfig, testPath, }: {
+ config: Config.ProjectConfig;
+ globalConfig: Config.GlobalConfig;
+ testPath: string;
+}) => Promise<TestResult>;
+export {};