@joystick.js/node-canary 0.0.0-canary.55 → 0.0.0-canary.57
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/dist/app/index.js
CHANGED
|
@@ -163,7 +163,7 @@ class App {
|
|
|
163
163
|
initTests() {
|
|
164
164
|
if (process.env.NODE_ENV === "test") {
|
|
165
165
|
this.express.app.get("/api/_test/bootstrap", async (req, res) => {
|
|
166
|
-
const Component = req?.query?.pathToComponent ? await importFile(
|
|
166
|
+
const Component = req?.query?.pathToComponent ? await importFile(`${process.cwd()}/.joystick/build/${req?.query?.pathToComponent}`) : null;
|
|
167
167
|
if (Component) {
|
|
168
168
|
const componentInstance = Component();
|
|
169
169
|
console.log(componentInstance);
|
|
@@ -10,7 +10,7 @@ import replaceBackslashesWithForwardSlashes from "../../lib/replaceBackslashesWi
|
|
|
10
10
|
import getBuildPath from "../../lib/getBuildPath.js";
|
|
11
11
|
import escapeHTML from "../../lib/escapeHTML.js";
|
|
12
12
|
import escapeKeyValuePair from "../../lib/escapeKeyValuePair.js";
|
|
13
|
-
import importFile from "../../lib/importFile.js
|
|
13
|
+
import importFile from "../../lib/importFile.js";
|
|
14
14
|
const generateHash = (input = "") => {
|
|
15
15
|
return crypto.createHash("sha256").update(input).digest("hex");
|
|
16
16
|
};
|