We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a173b4 commit cfb83ceCopy full SHA for cfb83ce
1 file changed
build-test.js
@@ -3,6 +3,8 @@
3
process.env.NODE_ENV = 'test'
4
5
var path = require('path')
6
+
7
+// find the test command from package.json prebuild.test entry
8
var test = null
9
10
try {
@@ -15,5 +17,12 @@ try {
15
17
// do nothing
16
18
}
19
-if (test) require(path.join(process.cwd(), test))
-else require('./')()
20
+if (test) {
21
+ const testPath = path.join(process.cwd(), test)
22
+ console.log(`Running require("${testPath}")`)
23
+ require(testPath)
24
+}
25
+else {
26
+ console.log(`Running require("./")() at ${process.cwd()}`)
27
+ require('./')()
28
0 commit comments