Open tunnckoCore opened 2 years ago
already published
asia
and asia-core
v2.3.x - on asia@canary
asia-cli@canary
, it just dynamic import
fast-glob
loading glob patterns, then run Node on them.each-promise
, p-map
or anything. It's based on Promise.all
and has hooks systemfilenamify
and Deno's path.joinasia
) defaults to file caching, can be disabled too. It also tries to load a config file.asia-core
just exposes an API const { test, run } = asia(config)
asia(await import('./asia.config.js').default)
or use the provided helper on { loadConfig }
named export, passing a relative file path.Filter by test file's path or test's title: just pass a filter to the config.
export default () => {
return {
filter: (cfg, { title, testPath, callsites }) => {
const match = cfg.env.ASIA_MATCH || "";
const byPath = match
? testPath.includes(match) || new RegExp(match).test(testPath)
: false;
const byTitle =
byPath === false && match
? title.includes(match) || new RegExp(match).test(title)
: false;
return byPath || byTitle;
},
}
}
ASIA_MATCH='some matcher'
and ASIA_NO_CACHE=1
doesn't work well. Kind of impossible for now.
Because it's easier to navigate.