Skip to content

Commit 5ea04d6

Browse files
fix(jest): integrate further config values in cli
1 parent 89df4ce commit 5ea04d6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/commands/test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { command } from 'yargs'
2-
import { logInfo } from '../utilities/log'
32
import { resolve } from 'path'
43
const jest = require('jest')
54

@@ -15,10 +14,14 @@ command(
1514
)
1615

1716
function test() {
18-
logInfo('Testing....')
19-
2017
jest.runCLI(
2118
{
19+
globals: JSON.stringify({
20+
__TRANSFORM_HTML__: true,
21+
'ts-jest': {
22+
tsConfigFile: resolve('tsconfig.json')
23+
}
24+
}),
2225
transform: JSON.stringify({
2326
'^.+\\.(ts|js|html)$': resolve(
2427
'node_modules/fusing-angular-cli/.build/jest/preprocessor.js'

0 commit comments

Comments
 (0)