Skip to content

Commit 1538cdd

Browse files
flytreeleftyyx990803
flytreeleft
authored andcommitted
use absolute path to make sure running tests is OK even if it is in node_modules of other project (vuejs#2685)
1 parent 66ebb17 commit 1538cdd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build/webpack.test.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ module.exports = {
1717
{
1818
test: /\.js$/,
1919
loader: 'babel',
20-
exclude: /test\/unit|node_modules/
20+
// NOTE: use absolute path to make sure
21+
// running tests is OK even if it is in node_modules of other project
22+
exclude: [
23+
path.resolve(__dirname, '../test/unit'),
24+
path.resolve(__dirname, '../node_modules')
25+
]
2126
}
2227
]
2328
},

0 commit comments

Comments
 (0)