@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.
- package/CHANGELOG.md +16 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.development.cjs +17 -15
- package/dist/index.cjs.development.cjs.map +1 -1
- package/dist/index.cjs.production.min.cjs +150 -1
- package/dist/index.cjs.production.min.cjs.map +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.esm.mjs +26 -17
- package/dist/index.esm.mjs.map +1 -1
- package/dist/index.umd.development.cjs +17 -15
- package/dist/index.umd.development.cjs.map +1 -1
- package/dist/index.umd.production.min.cjs +140 -1
- package/dist/index.umd.production.min.cjs.map +1 -1
- package/package.json +2 -2
- package/src/defaults.ts +6 -2
- package/src/helper.ts +2 -1
- package/src/index.ts +5 -5
- package/src/plugin/ts-jest.ts +16 -0
- package/src/print.ts +2 -2
- package/src/types.ts +3 -0
|
@@ -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:
|
|
44
|
+
export function printJestConfigInfo(jestConfig: IJestConfig, options?: IOptionsPrintJestConfigInfo)
|
|
45
45
|
{
|
|
46
46
|
const table = _newTableBorderless();
|
|
47
47
|
|
package/src/types.ts
ADDED