diff --git a/.circleci/config.yml b/.circleci/config.yml
index 0d20df9f..937a2387 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -286,6 +286,37 @@ workflows:
../../node_modules/.bin/only-covered main.js
working_directory: examples/support-files
+ - cypress/run:
+ attach-workspace: true
+ name: example-exclude-files
+ requires:
+ - cypress/install
+ # there are no jobs to follow this one
+ # so no need to save the workspace files (saves time)
+ no-workspace: true
+ start: npm start --prefix examples/exclude-files
+ wait-on: 'http://localhost:1234'
+ command: npx cypress run --project examples/exclude-files
+ # store screenshots and videos
+ store_artifacts: true
+ post-steps:
+ - run: cat examples/exclude-files/.nyc_output/out.json
+ # store the created coverage report folder
+ # you can click on it in the CircleCI UI
+ # to see live static HTML site
+ - store_artifacts:
+ path: examples/exclude-files/coverage
+ # make sure the examples captures 100% of code
+ - run:
+ command: npx nyc report --check-coverage true --lines 100
+ working_directory: examples/exclude-files
+ - run:
+ name: Check code coverage 📈
+ command: |
+ ../../node_modules/.bin/check-coverage main.js
+ ../../node_modules/.bin/only-covered main.js
+ working_directory: examples/exclude-files
+
- cypress/run:
attach-workspace: true
name: example-use-plugins-and-support
@@ -362,3 +393,4 @@ workflows:
- example-support-files
- example-use-plugins-and-support
- example-one-spec
+ - example-exclude-files
diff --git a/examples/exclude-files/.babelrc b/examples/exclude-files/.babelrc
new file mode 100644
index 00000000..7a016cf8
--- /dev/null
+++ b/examples/exclude-files/.babelrc
@@ -0,0 +1,3 @@
+{
+ "plugins": ["istanbul"]
+}
diff --git a/examples/exclude-files/README.md b/examples/exclude-files/README.md
new file mode 100644
index 00000000..3975988e
--- /dev/null
+++ b/examples/exclude-files/README.md
@@ -0,0 +1,3 @@
+# example: exclude files
+
+Exclude some files from final coverage report by using `nyc` object in [package.json](package.json) file.
diff --git a/examples/exclude-files/cypress.json b/examples/exclude-files/cypress.json
new file mode 100644
index 00000000..c7994dc6
--- /dev/null
+++ b/examples/exclude-files/cypress.json
@@ -0,0 +1,5 @@
+{
+ "fixturesFolder": false,
+ "pluginsFile": "cypress/plugins/index.js",
+ "baseUrl": "http://localhost:1234"
+}
diff --git a/examples/exclude-files/cypress/integration/spec.js b/examples/exclude-files/cypress/integration/spec.js
new file mode 100644
index 00000000..3d30a8af
--- /dev/null
+++ b/examples/exclude-files/cypress/integration/spec.js
@@ -0,0 +1,9 @@
+///