pi-ext
bugabingas pi extensions
owned by bugabinga
test(nu-bang): tolerate diagnostic wording changes
4a3f1e688601c44503622bed95335be31ac8fff5
Oliver Krylow <o.krylow@isp-insoft.de> ·
SSH signature · not checked
Browse filesCompare with HEAD
Changed files (1)
extensions/nu-bang/__tests__/real-world-full.test.ts
Modified325 325 test(
"shows nu's native delimiter diagnostics",
async ()
=> {
326 326 const result
= await run(
"[1 2 3");
327 327 expect(result.exitCode).
toBe(
1);
328 - expect(result.output).
toContain(
"nu::parser::unclosed_delimiter");
329 - expect(result.output).
toContain(
"expected `]` here");
328 + expect(result.output).
toMatch(
/nu::parser::[a-z_]+/);
329 + expect(result.output).
toMatch(
/expected .*\]/);
332 332 test(
"reports a missing working directory clearly",
async ()
=> {