aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@jest/transform/build/ScriptTransformer.d.ts
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.h.kronqvist@gmail.com>2022-03-05 19:02:27 +0200
committerJoel Kronqvist <joel.h.kronqvist@gmail.com>2022-03-05 19:02:27 +0200
commit5d309ff52cd399a6b71968a6b9a70c8ac0b98981 (patch)
tree360f7eb50f956e2367ef38fa1fc6ac7ac5258042 /node_modules/@jest/transform/build/ScriptTransformer.d.ts
parentb500a50f1b97d93c98b36ed9a980f8188d648147 (diff)
downloadLYLLRuoka-5d309ff52cd399a6b71968a6b9a70c8ac0b98981.tar.gz
LYLLRuoka-5d309ff52cd399a6b71968a6b9a70c8ac0b98981.zip
Added node_modules for the updating to work properly.
Diffstat (limited to 'node_modules/@jest/transform/build/ScriptTransformer.d.ts')
-rw-r--r--node_modules/@jest/transform/build/ScriptTransformer.d.ts40
1 files changed, 40 insertions, 0 deletions
diff --git a/node_modules/@jest/transform/build/ScriptTransformer.d.ts b/node_modules/@jest/transform/build/ScriptTransformer.d.ts
new file mode 100644
index 0000000..a36c7c7
--- /dev/null
+++ b/node_modules/@jest/transform/build/ScriptTransformer.d.ts
@@ -0,0 +1,40 @@
+/**
+ * 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.
+ */
+import type { Config } from '@jest/types';
+import type { Options, ReducedTransformOptions, RequireAndTranspileModuleOptions, StringMap, TransformResult } from './types';
+declare class ScriptTransformer {
+ private readonly _config;
+ private readonly _cacheFS;
+ private readonly _cache;
+ private readonly _transformCache;
+ private _transformsAreLoaded;
+ constructor(_config: Config.ProjectConfig, _cacheFS: StringMap);
+ private _buildCacheKeyFromFileInfo;
+ private _getCacheKey;
+ private _getCacheKeyAsync;
+ private _createFolderFromCacheKey;
+ private _getFileCachePath;
+ private _getFileCachePathAsync;
+ private _getTransformPath;
+ loadTransformers(): Promise<void>;
+ private _getTransformer;
+ private _instrumentFile;
+ private _buildTransformResult;
+ transformSource(filepath: Config.Path, content: string, options: ReducedTransformOptions): TransformResult;
+ transformSourceAsync(filepath: Config.Path, content: string, options: ReducedTransformOptions): Promise<TransformResult>;
+ private _transformAndBuildScriptAsync;
+ private _transformAndBuildScript;
+ transformAsync(filename: Config.Path, options: Options, fileSource?: string): Promise<TransformResult>;
+ transform(filename: Config.Path, options: Options, fileSource?: string): TransformResult;
+ transformJson(filename: Config.Path, options: Options, fileSource: string): string;
+ requireAndTranspileModule<ModuleType = unknown>(moduleName: string, callback?: (module: ModuleType) => void | Promise<void>, options?: RequireAndTranspileModuleOptions): Promise<ModuleType>;
+ shouldTransform(filename: Config.Path): boolean;
+}
+export declare function createTranspilingRequire(config: Config.ProjectConfig): Promise<(<TModuleType = unknown>(resolverPath: string, applyInteropRequireDefault?: boolean) => Promise<TModuleType>)>;
+export declare type TransformerType = ScriptTransformer;
+export declare function createScriptTransformer(config: Config.ProjectConfig, cacheFS?: StringMap): Promise<TransformerType>;
+export {};