repo_description: Slint is an open-source declarative GUI toolkit to build native user interfaces for Rust, C++, JavaScript, or Python apps.
repo_topics: cpp declarative-ui desktop embedded-devices gui javascript language lsp-server native rust rust-lang toolkit ui user-interface wasm webassembly widgets
code: // Copyright © SixtyFPS GmbH <[REDACTED_EMAIL]>
  // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
  
  import { defineConfig } from "vitest/config";
  
  export default defineConfig({
      test: {
          include: ["**/*.spec.mts"],
          globals: true, // Enable global test/expect/describe
          pool: "forks", // Use process forks (required for native modules that need main thread)
          teardownTimeout: 5000, // Force teardown after 5s to prevent hanging processes
          reporters: ["verbose"], // Show individual test names
      },
  });
  