mirror of
https://github.com/Mastermindzh/react-starter-kit.git
synced 2025-08-02 15:45:12 +02:00
added cypress
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user