Skip to content

provide option to simulate ci for ng test #32850

@robertIsaac

Description

@robertIsaac

Command

test

Description

right now sometimes the tests passes locally but fail in the ci
I asked https://stackoverflow.com/q/79902347/2748984 but it seems right now there is no way to have full simulation of the ci locally
the cloest I found is to have vitest-base.config.ts file with

export default defineConfig({
  test: {
    fileParallelism: false,
    sequence: {
      concurrent: false,
    },
    maxConcurrency: 1,
  },
});

and to add to angular.jest

          "options": {
            "runnerConfig": true
          }

to the test
which seems too much to do to just simulate how ng test work in ci

Describe the solution you'd like

to have option --ci for the ng test that simulate how ng test work in ci

Describe alternatives you've considered

to allow the full list of options from vitest namely, since with native vitest you can run

npx vitest --no-file-parallelism --sequence.concurrent=false --maxConcurrency=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions