This repository contains examples of various, often used, and tricky assertions in the common JS assertion tools. The site is built using Astro and Starlight.
The site and pages are generated based on the following content:
Examples (src/content/docs/examples) - The folder containing all assertion examples, organized into folders by assertion tools. It is important, that each tools and assertion should have a simple ID, that is used for 4.2. and 5.2., and here for the folder names, and the JavaScript example files in the folders.
For example, to create the assertion example for the Greater Than assertion on the Chai tool, the src/content/docs/examples/chai/greaterThan.js file is created. Note, that the src/content/docs/tools/chai.mdx and the src/content/docs/assertions/relational/greaterThan.mdx files also exist.
[!IMPORTANT]
Before deploying any feature branches, ensure that the AWS CDK Stack is already deployed.Currently, this can be verified by checking that no Stack Destroy workflow executions have occurred since the last Stack Deployment workflow execution.
To deploy a feature branch, manually execute the Feature Branch Deployment workflow.
[!NOTE]
Make sure to select your feature branch from the dropdown before executing the workflow.
Feature branches can be redeployed by re-executing the deployment workflow.
Once a feature branch is merged or no longer needed, clean it up by executing the Feature Branch Cleanup workflow.
The AWS CDK stack sets up the necessary infrastructure for the application. It needs to be deployed only once initially, and then it remains active until explicitly destroyed.
Deploy the stack by manually executing the Stack Deployment workflow.
Destroy the stack manually with the Stack Destroy workflow.
To develop the site locally, use the following commands.
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |