Skip to main content

Mocking data

· One min read

We are mainly working with objects and when mocking data we are concerned with 2 aspects: shape and concrete values.

When writing tests, the focus is generally concentrated around a small subset of the data which is directly manipulated or observed, the rest is either mocked or ignored completely.
There is a large amount of this auxiliary data that is needed for a test: a brand being set up, agent, feature flags, tasks etc.

In other words: the shape of the data prevents the application from crashing while the concrete values help us define the business logic.

Welcome

· One min read
Sébastien Lorber
Docusaurus maintainer
Yangshun Tay
Front End Engineer @ Facebook

Docusaurus blogging features are powered by the blog plugin.

Simply add Markdown files (or folders) to the blog directory.

Regular blog authors can be added to authors.yml.

The blog post date can be extracted from filenames, such as:

  • 2019-05-30-welcome.md
  • 2019-05-30-welcome/index.md

A blog post folder can be convenient to co-locate blog post images:

Docusaurus Plushie

The blog supports tags as well!

And if you don't want a blog: just delete this directory, and use blog: false in your Docusaurus config.

First Blog Post

· One min read
Gao Wei
Docusaurus Core Team

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet