Skip to content

Commit 4c6eef3

Browse files
committed
Prevent testOptions from changing the Babel working directory
1 parent a5de369 commit 4c6eef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/babel-pipeline.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ function build(projectDir, cacheDir, userOptions, compileEnhancements) {
122122
const partialTestConfig = babel.loadPartialConfig(Object.assign({
123123
babelrc: false,
124124
babelrcRoots: [projectDir],
125-
configFile: false,
126-
cwd: projectDir
125+
configFile: false
127126
}, userOptions && userOptions.testOptions, {
127+
cwd: projectDir,
128128
envName,
129129
inputSourceMap,
130130
filename,

0 commit comments

Comments
 (0)