Skip to content

v0.5.6

Latest
Compare
Choose a tag to compare
@lukeed lukeed released this 03 Jul 20:37
· 2 commits to master since this release

Patches

  • (uvu): Ensure tests fail if have process.exit or unresolved Promises (#206, #207): 70b59e7
    Thank you @rictic~!

  • (uvu/diff): Print BigInts within JSON correctly (#186): d764c08
    Thank you @rdmurphy~!

  • (uvu): Attach globalThis.UVU_DEFER to isCLI bool guard: 213efb5

  • (uvu/run): Move uvu imports into function call: f735f5a
    Both of these commits enable (some) programmatic-style uvu usage.

    // Basic ESM programmatic usage
    // ---
    let { run } = await import('uvu/run');
    let { parse } = await import('uvu/parse');
    
    // find all "src/**/*.test.ts" files
    let { suites } = await parse('src', /\.test.ts$/, {
      require: ['tsm'],
    });
    
    try {
      await run(suites);
    } catch (err) {
      console.error(err.stack || err);
      process.exitCode = 1;
    }

    Note: This will still be greatly simplified in a future release (#113)

Chores

  • Bump setup-node image version for CI: 2831a14

Full Changelog: v0.5.5...v0.5.6