0.1.1 • Published 30 days ago

@svelte-compose/testing-library v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
30 days ago

@svelte-compose/testing-library

This package provides core tools for testing your composer for different environments and options. Currently we execute tests against 5 project templates:

  • svelte-js
  • svelte-ts
  • kit-js
  • kit-js-comments
  • kit-ts

Additionally we will test your composer for each option combination that you specify.

Here is a sample usage example:

// test.js

import { remoteControl } from "@svelte-compose/core/internal";
import { testComposer } from "@svelte-compose/testing-library";

remoteControl.enable();
/** @type {import('@svelte-compose/core/composer/config').ComposerWithoutExplicitArgs} */
const composer = /** @type {any} */ (await import("./index.js")).default;
remoteControl.disable();

testComposer(composer, {
    outputDirectory: "./.outputs",
    headless: true,
    pauseExecutionAfterBrowser: false,
});
0.1.3

29 days ago

0.1.2

30 days ago

0.1.1

30 days ago

0.1.0

1 month ago

0.0.5

1 month ago

0.0.4

1 month ago

0.0.6

1 month ago

0.0.3

1 month ago

0.0.2

1 month ago