just-test-node 2.0.0-alpha.4 → 2.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -133,12 +133,12 @@ async function getTestFileFunctionAsync(file) {
|
|
|
133
133
|
testFileFunction = await Promise.resolve().then(() => __importStar(require(path_1.default.resolve(file))));
|
|
134
134
|
}
|
|
135
135
|
catch (reason) {
|
|
136
|
-
throw `The file
|
|
136
|
+
throw `The file "${file}" matched the tests glob but failed to be imported. reason: ${reason}`;
|
|
137
137
|
}
|
|
138
138
|
if (typeof testFileFunction != "function")
|
|
139
139
|
testFileFunction = testFileFunction.default;
|
|
140
140
|
if (typeof testFileFunction != "function") {
|
|
141
|
-
throw `The file
|
|
141
|
+
throw `The file "${file}" matched the tests glob but did not export a default function.`;
|
|
142
142
|
}
|
|
143
143
|
return testFileFunction;
|
|
144
144
|
}
|