jsdom / cssstyle

A Node.js implementation of the CSS Object Model CSSStyleDeclaration interface
MIT License
109 stars 70 forks source link

Migrate nodeunit -> jest #96

Closed jsakas closed 5 years ago

jsakas commented 5 years ago

I wrote a quick and dirty transpile script to migrate the current test.js file which only tests the CSSStyleDeclaration interface to lib/CSSStyleDeclaration.test.js using jest style describe / expect. It's a preference to have the test files next to the source.

Also started a test file for parsers.test.js which really needs to be tested.

Wrote some tests for parsers.valueType which was sparked by this bug: https://github.com/jsakas/CSSStyleDeclaration/pull/94

Add coverage report & integrate with codecov service.

Closes https://github.com/jsakas/CSSStyleDeclaration/issues/65

codecov-io commented 5 years ago

Codecov Report

Merging #96 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #96   +/-   ##
=======================================
  Coverage   59.83%   59.83%           
=======================================
  Files          85       85           
  Lines        1840     1840           
  Branches      218      218           
=======================================
  Hits         1101     1101           
  Misses        632      632           
  Partials      107      107

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1e8ebe0...caa062b. Read the comment docs.