Olexandr25 / jest-fractal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jest-fractal

Description

  1. make npm i - for installing lodash library
  2. write tests only in src/test/... {filename.test.js}
  3. in every file make require:
    • const { describe, test } = require("../src/describe-test.js)
    • const { fnName } = require("../src/Matchers/...)

Writing tests

write first function describe, inside write function test, after this steps we can write our tests

Example how write test

Installing npm jest-fractal

npm i jestfractal

About


Languages

Language:JavaScript 100.0%