File tree Expand file tree Collapse file tree 2 files changed +1
-31
lines changed Expand file tree Collapse file tree 2 files changed +1
-31
lines changed Original file line number Diff line number Diff line change @@ -68,15 +68,6 @@ const getBabelOptions = function loadBabelOptions(filename, options = {}) {
68
68
return loadPartialConfig ( opts ) . options
69
69
}
70
70
71
- const getTsJestConfig = function getTsJestConfig ( config ) {
72
- const { ConfigSet } = require ( 'ts-jest/dist/legacy/config/config-set' )
73
- const configSet = new ConfigSet ( config . config )
74
- var tsConfig = configSet . typescript || configSet . parsedTsConfig
75
- return {
76
- compilerOptions : { ...tsConfig . options , module : 'commonjs' }
77
- }
78
- }
79
-
80
71
/**
81
72
* Load TypeScript config from tsconfig.json.
82
73
* @param {string | undefined } path tsconfig.json file path (default: root)
@@ -173,7 +164,6 @@ module.exports = {
173
164
throwError,
174
165
logResultErrors,
175
166
getCustomTransformer,
176
- getTsJestConfig,
177
167
getTypeScriptConfig,
178
168
getBabelOptions,
179
169
getVueJestConfig,
Original file line number Diff line number Diff line change 1
1
const constants = require ( './constants' )
2
2
const loadPartialConfig = require ( '@babel/core' ) . loadPartialConfig
3
- const {
4
- loadSync : loadTsConfigSync ,
5
- resolveSync : resolveTsConfigSync
6
- } = require ( 'tsconfig' )
3
+ const { loadSync : loadTsConfigSync } = require ( 'tsconfig' )
7
4
const chalk = require ( 'chalk' )
8
5
const path = require ( 'path' )
9
6
const fs = require ( 'fs' )
@@ -71,22 +68,6 @@ const getBabelOptions = function loadBabelOptions(filename, options = {}) {
71
68
return loadPartialConfig ( opts ) . options
72
69
}
73
70
74
- const getTsJestConfig = function getTsJestConfig ( config ) {
75
- const tsConfigPath = getVueJestConfig ( config ) . tsConfig || ''
76
- const isUsingTs = resolveTsConfigSync ( process . cwd ( ) , tsConfigPath )
77
- if ( ! isUsingTs ) {
78
- return null
79
- }
80
-
81
- const { ConfigSet } = require ( 'ts-jest/dist/legacy/config/config-set' )
82
- const configSet = new ConfigSet ( config . config )
83
- const tsConfig = configSet . typescript || configSet . parsedTsConfig
84
- // Force es5 to prevent const vue_1 = require('vue') from conflicting
85
- return {
86
- compilerOptions : { ...tsConfig . options , target : 'es5' , module : 'commonjs' }
87
- }
88
- }
89
-
90
71
/**
91
72
* Load TypeScript config from tsconfig.json.
92
73
* @param {string | undefined } path tsconfig.json file path (default: root)
@@ -185,7 +166,6 @@ module.exports = {
185
166
throwError,
186
167
logResultErrors,
187
168
getCustomTransformer,
188
- getTsJestConfig,
189
169
getTypeScriptConfig,
190
170
getBabelOptions,
191
171
getVueJestConfig,
You can’t perform that action at this time.
0 commit comments