File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ coverage
15
15
# Logs
16
16
logs
17
17
* .log
18
+ temp-dir
18
19
19
20
# Runtime data
20
21
pids
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ var defaultBabelOptions = {
11
11
}
12
12
13
13
module . exports = function compileBabel ( scriptContent ) {
14
- const { file, config } = findBabelConfig . sync ( process . cwd ( ) ) ;
14
+ const { file, config } = findBabelConfig . sync ( process . cwd ( ) , 0 ) ;
15
15
16
16
if ( ! file ) {
17
17
logger . info ( 'no .babelrc found, defaulting to default babel options' )
Original file line number Diff line number Diff line change 19
19
"lint:fix" : " npm run lint -- --fix" ,
20
20
"release" : " build/release.sh" ,
21
21
"release:note" : " node build/gen-release-note.js" ,
22
- "test" : " npm run lint && npm run unit " ,
22
+ "test" : " npm run lint && ./test.sh " ,
23
23
"unit" : " cross-env BABEL_ENV=test jest --no-cache --coverage --coverageDirectory test/coverage --runInBand"
24
24
},
25
25
"author" : " Edd Yerburgh" ,
Original file line number Diff line number Diff line change
1
+ rm -rf temp-dir
2
+ mkdir temp-dir
3
+ cp -R test temp-dir/test
4
+ cp -R lib temp-dir/lib
5
+ cp -R node_modules temp-dir/node_modules
6
+ cp jest-vue.js temp-dir/jest-vue.js
7
+ cp package.json temp-dir/package.json
8
+ cp .babelrc temp-dir/.babelrc
9
+ cd temp-dir
10
+ yarn unit
You can’t perform that action at this time.
0 commit comments