Skip to main content

Command Palette

Search for a command to run...

S - Scenario

or Inputs to the Unit

Updated
1 min read
S - Scenario

It's the second section in the name.

It specifies which case we're going to verify in the test including the details that make it relevant.

/** In this example the three sections of the name are in the same text.
 * Airplane is the Unit under test
 * The xxx refer to the other section
 */
test("Airplane, takeOff without parameters, xxx", () => {});

/** In this example the first section of the test name is in a group
 * because there will be multiple tests on the same unit.
 * The xxx refer to the other sections
 */
group("Airplane", () => {
  group("takeOff without parameters, xxx", ()=>);

  test("takeOff with isRaining parameter set to true, xxx", () => {});
});

🇨🇴 Versión en Español