Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.93 KB

README.md

File metadata and controls

51 lines (40 loc) · 1.93 KB

"What I cannot create, I do not understand."

-- Richard P. Feynman

Vanilla - tiny test runner

This is a very simple implementation of a test runner, which helps to understand how it works under the hood. As you might guess, a lot of the features are missing and you can add most of them yourself.

Here are some of the links we've seen at the talk:

Development

Run the following commands from the terminal

npm install
npm test

Aditional features

Try to implement the following features under the current infrastructure.

  1. before/after
  2. beforeEach/afterEach
  3. it.only
  4. it.skip

Guidance

  1. Write the usage of the feature on the example project.
  2. Run npm test and let it fail.
  3. Add the relevant global to the rewireGlobals function.
  4. Add the new state under the constructor.
  5. Change the run function accordingly.

Good Luck! 😃

FAQ

  • How can i install the global vanilla command? - Use npm link from the main directory.
  • How can i remove the global vanilla command? - You can use npm unlink from the vanilla directory.