diff --git a/circle.yml b/circle.yml
index 2f9031a4..6930bcbb 100644
--- a/circle.yml
+++ b/circle.yml
@@ -26,6 +26,9 @@ workflows:
- run:
name: Linting code 🧹
command: npm run lint
+ - run:
+ name: Stop exclusive tests 1️⃣
+ command: npm run stop-only
- run:
name: Check markdown links ⚓️
command: npm run check:links
diff --git a/cypress/component/advanced/react-book-example/src/Note.spec.js b/cypress/component/advanced/react-book-example/src/Note.spec.js
index d55577e8..68f9d13f 100644
--- a/cypress/component/advanced/react-book-example/src/Note.spec.js
+++ b/cypress/component/advanced/react-book-example/src/Note.spec.js
@@ -4,7 +4,7 @@ import React from 'react'
import Select from './Note'
describe('Note', () => {
- it.only('save text', () => {
+ it('save text', () => {
mount()
cy.get('#change').type('input text')
cy.contains('button', 'Save').click()
diff --git a/cypress/component/advanced/tutorial/square-spec.js b/cypress/component/advanced/tutorial/square-spec.js
index 11069c4c..016372b5 100644
--- a/cypress/component/advanced/tutorial/square-spec.js
+++ b/cypress/component/advanced/tutorial/square-spec.js
@@ -24,7 +24,7 @@ class Square extends React.Component {
}
describe('Square', () => {
- it.only('changes value on click', () => {
+ it('changes value on click', () => {
const selector = 'button.square'
mount()
// initially button is blank
diff --git a/cypress/component/advanced/use-local-storage/README.md b/cypress/component/advanced/use-local-storage/README.md
index 6e7537ed..e90af2b9 100644
--- a/cypress/component/advanced/use-local-storage/README.md
+++ b/cypress/component/advanced/use-local-storage/README.md
@@ -1,7 +1,11 @@
# localStorage with useEffect
+
+
App idea from https://twitter.com/housecor/status/1268900696604258304
+
+
Shows how to set `localStorage` before mounting the component, and how to clear the local storage before each test.

diff --git a/cypress/component/basic/react-book-by-chris-noring/README.md b/cypress/component/basic/react-book-by-chris-noring/README.md
index db07eaa9..81c943d7 100644
--- a/cypress/component/basic/react-book-by-chris-noring/README.md
+++ b/cypress/component/basic/react-book-by-chris-noring/README.md
@@ -1 +1,5 @@
+
+
These tests follow examples from the free [React Book](https://softchris.github.io/books/react) by [Christoffer Noring](https://twitter.com/chris_noring).
+
+
diff --git a/package-lock.json b/package-lock.json
index 3c6cea02..696a2fa3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -33704,6 +33704,40 @@
"integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=",
"dev": true
},
+ "stop-only": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/stop-only/-/stop-only-3.1.0.tgz",
+ "integrity": "sha512-6jh8jRq2eIOQwBG1lQjg+cpxtzl6MuXlapZf82SBlnCN5W+sKO0RfgOp+yIT+qf8zW9mMcGZDpeKVs8wrsBqfw==",
+ "dev": true,
+ "requires": {
+ "debug": "4.1.1",
+ "execa": "0.11.0",
+ "minimist": "1.2.0"
+ },
+ "dependencies": {
+ "execa": {
+ "version": "0.11.0",
+ "resolved": "https://registry.npmjs.org/execa/-/execa-0.11.0.tgz",
+ "integrity": "sha512-k5AR22vCt1DcfeiRixW46U5tMLtBg44ssdJM9PiXw3D8Bn5qyxFCSnKY/eR22y+ctFDGPqafpaXg2G4Emyua4A==",
+ "dev": true,
+ "requires": {
+ "cross-spawn": "^6.0.0",
+ "get-stream": "^4.0.0",
+ "is-stream": "^1.1.0",
+ "npm-run-path": "^2.0.0",
+ "p-finally": "^1.0.0",
+ "signal-exit": "^3.0.0",
+ "strip-eof": "^1.0.0"
+ }
+ },
+ "minimist": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
+ "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
+ "dev": true
+ }
+ }
+ },
"stream-browserify": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz",
diff --git a/package.json b/package.json
index 9591ea8c..63c4bd2a 100644
--- a/package.json
+++ b/package.json
@@ -16,11 +16,14 @@
"lint": "standard --verbose --fix *.js src cypress/integration",
"semantic-release": "semantic-release",
"format": "prettier --write '*.js', 'src/*.jsx' 'cypress/**/*.js' 'cypress/**/*.jsx' 'lib/*.ts'",
- "check:links": "find . -type f -name 'README.md' ! -path './node_modules/*' | xargs -L1 npx markdown-link-check --quiet"
+ "check:links": "find . -type f -name 'README.md' ! -path './node_modules/*' | xargs -L1 npx markdown-link-check --quiet",
+ "stop-only": "stop-only --folder cypress",
+ "warn-only": "stop-only --warn --folder cypress"
},
"husky": {
"hooks": {
- "pre-commit": "lint-staged"
+ "pre-commit": "lint-staged && npm run warn-only",
+ "pre-push": "npm run stop-only"
}
},
"lint-staged": {
@@ -100,6 +103,7 @@
"react-tooltip": "4.2.6",
"semantic-release": "17.1.0",
"standard": "14.3.3",
+ "stop-only": "3.1.0",
"style-loader": "0.23.1",
"styled-components": "5.0.0",
"svg-url-loader": "3.0.3",