2024-12-06 00:14:29 +03:00
|
|
|
import * as bdd from 'jsr:@std/testing@1.0.5/bdd'
|
|
|
|
|
|
|
|
export function describe(name, opts, fn) {
|
|
|
|
if (typeof opts === 'function') {
|
|
|
|
fn = opts
|
|
|
|
opts = {}
|
|
|
|
}
|
|
|
|
|
|
|
|
bdd.describe(name, {
|
|
|
|
...opts,
|
|
|
|
// we don't close @db/sqlite
|
|
|
|
sanitizeResources: false,
|
2024-12-06 13:29:09 +03:00
|
|
|
sanitizeOps: false,
|
2024-12-06 00:14:29 +03:00
|
|
|
}, fn)
|
|
|
|
}
|
|
|
|
export const it = bdd.it
|
|
|
|
export const before = bdd.beforeAll
|
|
|
|
export const after = bdd.afterAll
|