Skip to content

Commit

Permalink
fix: tests for node 12 (#12)
Browse files Browse the repository at this point in the history
* fix: test issues in sample apps

* fix: test issues in sample apps

* fix: tests for node 12
  • Loading branch information
arunvishnun committed Feb 27, 2023
1 parent 436ac2c commit 10c92e7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
8 changes: 4 additions & 4 deletions packages/subapp-server/test/spec/fastify-plugin.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { fastifyPlugin } = require("../../lib/fastify-plugin");
const Path = require("path");
const { runFinally, asyncVerify, runTimeout } = require("run-verify");
const { runFinally, runVerify, runTimeout } = require("run-verify");
const http = require("http");

describe("fastify-plugin", function () {
Expand All @@ -28,7 +28,7 @@ describe("fastify-plugin", function () {
stats: Path.join(__dirname, "../data/fastify-plugin-test/stats.json")
};

return asyncVerify(
return runVerify(
runTimeout(4500),
() => fastifyPlugin(server, opt),
() => server.start(),
Expand Down Expand Up @@ -71,7 +71,7 @@ describe("fastify-plugin", function () {
stats: Path.join(__dirname, "../data/fastify-plugin-test/stats.json")
};

return asyncVerify(
return runVerify(
runTimeout(4500),
() => fastifyPlugin(server, opt),
() => server.start(),
Expand Down Expand Up @@ -108,7 +108,7 @@ describe("fastify-plugin", function () {
}
});

asyncVerify(
return runVerify(
() => fastifyPlugin(server, {}),
() => server.start(),
async () => {
Expand Down
9 changes: 6 additions & 3 deletions samples/poc-subapp-redux/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
var path = require("path");
var archetype = require("@xarc/app-dev/config/archetype");
var archetypeEslint = path.join(archetype.getDevOptions()?.config?.eslint, ".eslintrc-react");
const path = require("path");
const archetype = require("@xarc/app-dev/config/archetype");
const { config = {} } = archetype.getDevOptions();
const { eslint = {} } = config;

const archetypeEslint = path.join(eslint, ".eslintrc-react");

function dotify(p) {
return path.isAbsolute(p) ? p : "." + path.sep + p;
Expand Down
9 changes: 6 additions & 3 deletions samples/poc-subapp/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
var path = require("path");
var archetype = require("@xarc/app-dev/config/archetype");
var archetypeEslint = path.join(archetype.getDevOptions()?.config?.eslint, ".eslintrc-react");
const path = require("path");
const archetype = require("@xarc/app-dev/config/archetype");
const { config = {} } = archetype.getDevOptions();
const { eslint = {} } = config;

const archetypeEslint = path.join(eslint, ".eslintrc-react");

function dotify(p) {
return path.isAbsolute(p) ? p : "." + path.sep + p;
Expand Down

0 comments on commit 10c92e7

Please sign in to comment.