Skip to content

Running vitest browser in GitLab CI #6310

Answered by sheremet-va
bu-michael asked this question in Q&A
Discussion options

You must be logged in to vote

If you add @vitest/browser/providers/webdriverio to compilerOptions.types in your tsconfig, then you can see all available options in your providerOptions. Adding args will solve your issue:

export default defineConfig({
  test: {
    browser: {
      providerOptions: {
        capabilities: {
          'goog:chromeOptions': {
            args: ['disable-gpu', 'no-sandbox', 'disable-setuid-sandbox']
          }
        }
      }
    }
  }
})

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@AriPerkkio
Comment options

@bu-michael
Comment options

@AriPerkkio
Comment options

@sheremet-va
Comment options

Answer selected by bu-michael
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants