added cypress

This commit is contained in:
2022-06-27 18:04:55 +02:00
parent 3cb1759648
commit 30f27d26e6
16 changed files with 2347 additions and 12 deletions

View File

@@ -38,7 +38,12 @@ function isInMercurialRepository() {
}
// Watch unless on CI or explicitly running all tests
if (!process.env.CI && argv.indexOf("--watchAll") === -1 && argv.indexOf("--watchAll=false") === -1) {
if (
!process.env.CI &&
!argv.indexOf("--ci" !== -1) &&
argv.indexOf("--watchAll") === -1 &&
argv.indexOf("--watchAll=false") === -1
) {
// https://github.com/facebook/create-react-app/issues/5210
const hasSourceControl = isInGitRepository() || isInMercurialRepository();
argv.push(hasSourceControl ? "--watch" : "--watchAll");