Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/apoorv0503/holiday-tracker-typescipt

A holiday tracker for all the countries with detailed list of holidays
https://github.com/apoorv0503/holiday-tracker-typescipt

axios interface jest react react-testing-library typescript useffect-hook

Last synced: 14 days ago
JSON representation

A holiday tracker for all the countries with detailed list of holidays

Awesome Lists containing this project

README

        

# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

## Testing

### Basic functionality tests:
There are 3 test suits to test HolidayFormm, HolidayList and App files, to test them use:
`npm test`
![basic_tests](https://github.com/Apoorv0503/Holiday-tracker-TypeScipt/blob/main/src/Assests/basic_tests.png?raw=true)

## TypeScript implementation tests:
To test if the project is implemented using ts only, there is a separted script with some test cases. To run that script, we need a node environment, and to run this script use this command:
`npm run check-files`

![ts_implementation_tests](https://github.com/Apoorv0503/Holiday-tracker-TypeScipt/blob/main/src/Assests/ts_tests.png?raw=true)