Skip to content

local e2e tests - check if smoke-test to prevent jest watching  #1739

@tuchk4

Description

@tuchk4

Now --watch flag for jest tests is disabled in two cases (scripts/test.js#L25):

  • is CI
  • or --coverage is added

but when run npm run e2e locally - tests always stops at first npm test - tasks/e2e-simple.sh#L117

Maybe add isSmokeTest check like at utils/createWebpackCompiler.js#L11?

// Watch unless on CI or in coverage mode
const isSmokeTest = process.argv.some(arg => arg.indexOf('--smoke-test') > -1)
if (!isSmokeTest && !process.env.CI && argv.indexOf('--coverage') < 0) {
  argv.push('--watch');
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions