Skip to content

benrosen-moodys/poc-jest-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poc-jest-sandbox

This is a sandbox repo for playing around with Jest + Typescript + Node.

Test that a function...

  • gets called
  • returns the expected results
  • throws the expected errors

You might use describe like this

// describe noun
describe("The function", () => {
    // describe behavior
    describe("should throw an error", () => {
        // test case
        test("when dependency throws", () => {
            //
        });

        // test case
        test("when input is bad", () => {
            //
        });
    });
});

About

A place to play around with Jest + Typescript + Node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published