Git Product home page Git Product logo

s1-units's Introduction

Семинар №1 - Юнит-тесты на JS

Перед установкой убедитесь, что у вас установлены nvm и npm

Установить проект:

  • форкаем репозиторий
  • клонируем и переходим в папку проекта cd s1-units
  • выполняем npm i

После выполнения задания:

  • пушим написанные тесты
  • создаем пулл-реквест и скидываем в телеграм @VictoriaOtm

Запустить проект:

  • npm start

Запустить тесты:

  • прогон тестов npm run test
  • покрытие npm test -- --coverage
  • обновить снапшоты npm test -- --updateSnapshot

Документация по тестам:

https://create-react-app.dev/docs/running-tests

jest:

https://jestjs.io/docs/ru/getting-started

https://jestjs.io/docs/ru/expect

enzyme:

https://airbnb.io/enzyme/

https://medium.com/@acesmndr/testing-react-functional-components-with-hooks-using-enzyme-f732124d320a

Условия сдачи практики:

  • написать юнит-тесты на каждую функцию в /utils и на компонент Order
  • добиться покрытия не менее 80% по всем модулям
  • соблюсти принципы автоматизации и не применить анти-паттерны
  • скинуть пулл-реквест до конца семинара и пройти ревью

s1-units's People

Contributors

victoriaotm avatar n-merkulova 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.