Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure pipeline returns: ##[error]Bash exited with code '1'. #7057

Closed
6 tasks done
DaanyWaay opened this issue Dec 10, 2024 · 2 comments
Closed
6 tasks done

Azure pipeline returns: ##[error]Bash exited with code '1'. #7057

DaanyWaay opened this issue Dec 10, 2024 · 2 comments

Comments

@DaanyWaay
Copy link

Describe the bug

After updating:
"vitest": "^2.0.5"
"@vitest/coverage-v8": "^2.0.5",
to
"vitest": "2.1.8"
"@vitest/coverage-v8": "2.1.8",

Azure pipeline is failing. The only suspicious thing I can see is the testcase time. In 2.0.5 the "time" prop is like 0.068: time="0.068", in 2.1.8 time="0.068544161".

Reproduction

vitest.config.ts:

export default defineConfig({
  plugins: [react()],
  test: {
    globals: true,
    environment: "jsdom",
    setupFiles: "./src/test/setup.tsx",
    reporters: [["junit", { suiteName: "Coverage report" }]],
    outputFile: {
      junit: "./report.xml",
    },
    coverage: {
      include: ["src/**/*.{ts,tsx}"],
      exclude: [
        "src/dit/**/*.*",
        "src/test/**/*.*",
      ],
      reportsDirectory: "./coverage/reports",
      reporter: ["text", "html", "lcov"],
    },
  },
});

System Info

"@vitest/coverage-v8": "2.1.8",
"vitest": "2.1.8",
"@vitest/*: "2.1.8"

Used Package Manager

npm

Validations

Copy link

Hello @DaanyWaay. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with needs reproduction will be closed if they have no activity within 3 days.

@coltkenn
Copy link

hi. i'm experiencing the same issue in azure pipelines.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Dec 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants