You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 1. Instruments all package source files and writes the instrumented files to a specified directory (e.g., a `build` directory).
149
+
# 2. Copies all non-instrumented package files to the instrumentation directory. This is necessary as files such as `*.json` files are not instrumented, and thus, the files are not copied over by Istanbul.
150
+
#
151
+
# In short, we need to effectively recreate the project source tree in the instrumentation directory in order for tests to properly run.
#Run unit tests and generate a test coverage report.
168
+
#/
169
+
#Runs unit tests and generates a test coverage report.
151
170
#
152
-
# This target instruments source code, runs unit tests, and outputs a test coverage report.
153
-
171
+
# ## Notes
172
+
#
173
+
# - Raw TAP output is piped to a TAP reporter.
174
+
# - This command is useful when wanting to glob for JavaScript test files (e.g., generate a test coverage report for all JavaScript tests for a particular package).
#Run unit tests and generate a test coverage report.
221
+
#/
222
+
#Runs unit tests and generates a test coverage report.
186
223
#
187
-
# This target instruments source code, runs unit tests, and outputs a test coverage report.
188
-
224
+
# ## Notes
225
+
#
226
+
# - This recipe implements the "classic" approach for using Istanbul to generate a code coverage report using the `cover` command. For certain situations, this recipe can still be used, but, in general, when using Istanbul, we instrument, backfill package files, and generate a coverage report from the instrumentation directory.
0 commit comments