Task 001: Hello World - MrKiplin/learn-typescript GitHub Wiki

Task description

Create a function that returns a string Hello World.

Step by step guide

Coming soon......

Completed solution

001-hello-world.ts

export const helloWorld = (): string => {
  return "Hello World";
};

001-hello-world.spec.ts

import { helloWorld } from "./001-hello-world";

describe("helloWorld", () => {
  it("Should return string of Hello World", async () => {
    const result = helloWorld();
    expect(result).toEqual("Hello World");
  });
});