Skip to content

Commit 1538cdd

Browse files
flytreeleftyyx990803
authored andcommitted
use absolute path to make sure running tests is OK even if it is in node_modules of other project (#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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy