dojo / cli-build-widget

Command for building Dojo widgets
Other
6 stars 17 forks source link

Discovering spec files in src directory #74

Closed rorticus closed 4 years ago

rorticus commented 4 years ago

Adding discovery of unit tests as .spec.ts and .spec.tsx files in the src directory along side the unit tests in the tests/unit directory.

I tested this by renaming a test file in @dojo/widgets and doing a test build with dojo build widget -m test and then looking at the output and verified that the test was included.

This issue resolves https://github.com/dojo/cli-build-widget/issues/73

codecov[bot] commented 4 years ago

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #74   +/-   ##
=======================================
  Coverage   64.39%   64.39%           
=======================================
  Files           8        8           
  Lines         410      410           
  Branches       88       88           
=======================================
  Hits          264      264           
  Misses        146      146
Impacted Files Coverage Δ
src/test.config.ts 14.63% <ø> (ø) :arrow_up:

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 a1141fe...2934fc7. Read the comment docs.