UNPKG

vitest-dynaliter

Version:
18 lines (14 loc) 1.07 kB
import { a } from './chunk-HGQWJ62Z.js'; export { a as setup } from './chunk-HGQWJ62Z.js'; import { c, a as a$1, b, f, g } from './chunk-ZQPTWUKA.js'; export { i as createTables, h as deleteTables, f as startDb, g as stopDb } from './chunk-ZQPTWUKA.js'; import { builtinEnvironments } from 'vitest/environments'; var u={...builtinEnvironments.node,name:"dynaliter",async setup(m,{dynaliter:{rootDir:n}}){let p=await builtinEnvironments.node.setup(m,{});console.log("Dynalite environment setup is starting...");try{await a(n);}catch(t){throw t instanceof c?new Error(` vitest-dynaliter could not find "${a$1}" or "${b}" in the vitest <rootDir> (${n}). If you didn't intend to be using this directory for the config, please specify a custom directory using VITEST_DYNALITER_CONFIG_DIRECTORY For more information, please see https://github.com/geertwille/vitest-dynaliter/#breaking-changes. `):t}return await f(),{async teardown(t){await g(),await p.teardown(t);}}}}; export { u as default }; //# sourceMappingURL=index.js.map //# sourceMappingURL=index.js.map