@joystick.js/node-canary 0.0.0-canary.56 → 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(`./.joystick/build/${req?.query?.pathToComponent}`) : null;
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/node-canary",
3
- "version": "0.0.0-canary.56",
3
+ "version": "0.0.0-canary.57",
4
4
  "type": "module",
5
5
  "description": "A Node.js framework for building web apps.",
6
6
  "main": "./dist/index.js",