Giter Club home page Giter Club logo

preptest-frontend-technical-test's Introduction

PREPTEST FRONTEND TECHNICAL TEST

PREP-TEST Logo

This is a technical test for frontend developer position at PREPTEST. You are expected to create a simple web application that is similar to below FIGMA DESIGN:

You can add more features or alter the design a little bit as you see fit. The design is just a reference. But core features must be the same.

Table of Contents

REQUIREMENTS

  • Use this repository as a template to start your project.
  • Design with Tailwind v3 CSS Utility Library.
  • Responsive, mobile-first and accessible design.
  • ReactJS with hooks. (No class component)
  • Use React Composition Pattern to create reusable components.
  • It is extra to create unit test and e2e test. (You can use Jest, React Testing Library, and Cypress) E2E test is recommended but not required. You can ask for support and more information about this if you need.
  • After completion, you should send the link to your repository to us via email.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Before you start, make sure you have installed the following software on your computer:

VSCode Extensions

Installing

  1. First, Fork this repository into your GitHub account.

  2. Then, clone this repository into your computer:

git clone https://github.com/[GITHUB_USER_NAME]/preptest-frontend-technical-test
  1. Then, install yarn v1.22.10 globally (if you don't have it already):
npm install --global [email protected]
  1. Then, install all dependencies:
yarn

Running

To run this project, run the following command:

yarn dev

Built With

  • NextJS - The React Framework for Production

Testing

  • Jest - JavaScript Testing Framework
  • React Testing Library - Simple and complete React DOM testing utilities that encourage good testing practices
  • Cypress - Fast, easy and reliable testing for anything that runs in a browser

How to write test

Unit Test

Unit test is written using Jest and React Testing Library. To write unit test, create a file with the same name as the file you want to test, but with .test.ts or .test.tsx extension. For example, if you want to test src/components/HelloWorld.tsx, create a file named src/components/HelloWorld.test.tsx.

E2E (End to End) Test - RECOMMENDED

E2E test is written using Cypress. To write E2E test, create the files with the same folder structure in cypress folder at the root of the project. For example, if you want to test src/pages/index.tsx, create a file named cypress/e2e/pages/index.cy.ts.

preptest-frontend-technical-test's People

Contributors

mstfucrr 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.