@svelte-add/testing-library

2.1.17 • Public • Published

@svelte-add/testing-library

This package provides core tools for testing your adder 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 adder for each option combination that you specify.

Here is a sample usage example:

// test.js

import { remoteControl } from '@svelte-add/core/internal';
import { testAdder } from '@svelte-add/testing-library';

remoteControl.enable();
/** @type {import('@svelte-add/core/adder/config').AdderWithoutExplicitArgs} */
const adder = /** @type {any} */ (await import('./index.js')).default;
remoteControl.disable();

testAdder(adder, {
	outputDirectory: './.outputs',
	headless: true,
	pauseExecutionAfterBrowser: false,
});

Dependencies (3)

Dev Dependencies (3)

Package Sidebar

Install

npm i @svelte-add/testing-library

Weekly Downloads

2

Version

2.1.17

License

MIT

Unpacked Size

140 kB

Total Files

6

Last publish

Collaborators

  • manuel3108
  • babichjacob