@bluelovers/jest-config 1.0.16 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,16 @@
1
+ import { TsJestTransformerOptions } from 'ts-jest/dist/types';
2
+
3
+ export function defaultTsJestTransformerOptions()
4
+ {
5
+ return {
6
+ tsconfig: {
7
+ noEmit: true,
8
+ emitDeclarationOnly: false,
9
+ noUnusedParameters: false,
10
+ allowUnusedLabels: true,
11
+ noUnusedLocals: false,
12
+ noPropertyAccessFromIndexSignature: false,
13
+ noImplicitAny: false,
14
+ },
15
+ } satisfies TsJestTransformerOptions
16
+ }
package/src/print.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { applyStyleBorderless, Table } from '@yarn-tool/table';
2
2
  import { TableConstructorOptions } from 'cli-table3';
3
- import { InitialOptionsTsJest } from 'ts-jest';
4
3
  import { console } from 'debug-color2';
5
4
  import { inspect } from 'util';
6
5
  import { name as jName, version as jVersion } from '../package.json';
6
+ import { IJestConfig } from './types';
7
7
 
8
8
  export function _newTableBorderless(options?: TableConstructorOptions)
9
9
  {
@@ -41,7 +41,7 @@ export interface IOptionsPrintJestConfigInfo
41
41
  file?: string;
42
42
  }
43
43
 
44
- export function printJestConfigInfo(jestConfig: InitialOptionsTsJest, options?: IOptionsPrintJestConfigInfo)
44
+ export function printJestConfigInfo(jestConfig: IJestConfig, options?: IOptionsPrintJestConfigInfo)
45
45
  {
46
46
  const table = _newTableBorderless();
47
47
 
package/src/types.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { InitialOptionsTsJest, JestConfigWithTsJest } from 'ts-jest';
2
+
3
+ export type IJestConfig = InitialOptionsTsJest | JestConfigWithTsJest;