/vanilla

Tiny test runner - following to "Build your own test runner" talk

Primary LanguageJavaScript

"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.