Giter Club home page Giter Club logo

testing-it's Introduction

Testing it

This is the repository for playing around with web testing Please follow the instructions below to set up the development environment.

Open in StackBlitz

Dependencies

Node.js

For the local development setup you need to have the Node.js JavaScript runtime installed on your system.

To use the same version as the team, please install Node.js via the node version manager (nvm).

Install the node version specified in the .nvmrc

nvm install

Use the node version specified in the .nvmrc

nvm use

Run the following to check your node Version.

node -v

Node Package Manager

We use npm as our package manager (npm comes bundled with node).

For local development you need to install the dependencies with the following command:

  • npm install - install all dependencies

Development

We use the following frameworks and tools for development:

Following commands are available for development:

  • npm run dev - run the development server
  • npm run messages:extract - extract messages for translation

Testing

We use the following frameworks and tools for testing:

Unit and Component Tests

You can find the unit and component tests in the src folder. The tests are located in the same folder as the component they are testing. The naming convention for the tests is *.test.[ts|tsx].

The rendering of the React components is done with the react-testing-library. We provide a custom render function that wraps every component with a theme and language provider. The custom render function can be found in test-utils.tsx.

Following commands are available for running the tests:

  • npm test - run all tests in watch mode
  • npm run test:coverage - run all tests and generate a coverage report
  • npm run test:ui - run all tests in watch mode with the vitest UI open

testing-it's People

Contributors

gvand avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.