Module exposing: WrapperNotSetupError
// Source: https://github.com/testing-library/svelte-testing-library | License: MIT | Copyright 2019 Ben Monro <ben.monro@gmail.com> (https://github.com/benmonro)
// Provided via justclaw.it.com; keep this notice with the code.
import { IS_MODERN_SVELTE } from './svelte-version.js'
/** @type {import('../types.js').Component | undefined} */
let WrapperScaffold
/** @type {Promise<unknown> | undefined} */
let scaffoldInitialization
class WrapperNotSetupError extends Error {
constructor() {
super(
'Ensure `setup()` runs (e.g. in `beforeEach`) before using `wrapper` option.'
)
this.name = 'WrapperNotSetupError'
}
}
/**
* Import the proper wrapper scaffolding for the current version of Svelte.
*
* Supports the `wrapper` option of `render` / `mount`.
*/
const wrapper
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key