Team Ai
Datasetpublic

Brunobkr/llama.cpp_AlgMor24_github

ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3.1kdownloads
1# vitest-browser-svelte2 3Render Svelte components in Vitest Browser Mode. This library follows `testing-library` principles and exposes only [locators](https://vitest.dev/guide/browser/locators) and utilities that encourage you to write tests that closely resemble how your Svelte components are used.4 5Requires `vitest` 4.0.0 or higher.6 7```tsx8import { render } from 'vitest-browser-svelte'9import { expect, test } from 'vitest'10import Component from './Component.svelte'11 12test('counter button increments the count', async () => {13  const screen = await render(Component, {14    initialCount: 1,15  })16 17  await screen.getByRole('button', { name: 'Increment' }).click()18 19  await expect.element(screen.getByText('Count is 2')).toBeVisible()20})21```22 23> [!NOTE]24> This library doesn't expose or use `act`. Instead, you should use Vitest's locators and `expect.element` API that have [retry-ability mechanism](https://vitest.dev/guide/browser/assertion-api) baked in.25 26`vitest-browser-svelte` also automatically injects `render` and `cleanup` methods on the `page`. Example:27 28```ts29// vitest.config.ts30import { defineConfig } from 'vitest/config'31 32export default defineConfig({33  test: {34    // if the types are not picked up, add `vitest-browser-svelte` to35    // "compilerOptions.types" in your tsconfig or36    // import `vitest-browser-svelte` manually so TypeScript can pick it up37    setupFiles: ['vitest-browser-svelte'],38    browser: {39      // ... your browser config40    },41  },42})43```44 45```tsx46import { page } from 'vitest/browser'47import Component from './Component.svelte'48 49test('counter button increments the count', async () => {50  const screen = await page.render(Component, {51    initialCount: 1,52  })53 54  screen.cleanup()55})56```57 58Unlike `@testing-library/svelte`, `vitest-browser-svelte` cleans up the component before the test starts instead of after, so you can see the rendered result in your UI. To avoid auto-cleanup, import the `render` function from `vitest-browser-svelte/pure`.59 60## Special thanks61 62- Forked from [`@testing-library/svelte`](https://github.com/testing-library/svelte-testing-library)63 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai