0.1.1 • Published 2 years ago

@svelte-compose/testing-library v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago