actionhero
Version:
actionhero.js is a multi-transport API Server with integrated cluster capabilities and delayed tasks
26 lines (21 loc) • 642 B
text/typescript
import { Process, specHelper } from "./../../src/index";
const actionhero = new Process();
describe("Action", () => {
describe("status", () => {
beforeAll(async () => {
await actionhero.start();
});
afterAll(async () => {
await actionhero.stop();
});
test("returns node status", async () => {
const { id, problems, name, error } = await specHelper.runAction(
"status"
);
expect(error).toBeUndefined();
expect(problems).toHaveLength(0);
expect(id).toEqual(`test-server-${process.env.JEST_WORKER_ID || 0}`);
expect(name).toEqual("actionhero");
});
});
});