Skip to content

Commit cea9129

Browse files
committed
Add NODE_MODULES_URL global
1 parent 78c2a9d commit cea9129

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/config/server.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ function startServer(options = {}, cb = Function.prototype) {
3434
baseDir: path.resolve(__dirname, '../'),
3535
routes: {
3636
'/docs': path.resolve(__dirname, '../../docs'),
37-
'/lib': path.resolve(__dirname, '../../lib'),
3837
'/docs/changelog.md': './CHANGELOG.md',
38+
'/lib': path.resolve(__dirname, '../../lib'),
39+
'/node_modules': path.resolve(__dirname, '../../node_modules'),
3940
},
4041
},
4142
snippetOptions: {
@@ -108,6 +109,9 @@ module.exports = {
108109
get LIB_URL() {
109110
return `${this.TEST_HOST}/lib`;
110111
},
112+
get NODE_MODULES_URL() {
113+
return `${this.TEST_HOST}/node_modules`;
114+
},
111115
TEST_HOST: `http://${serverConfig.host}:${serverConfig.port}`,
112116
},
113117
start: startServer,

0 commit comments

Comments
 (0)