Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More cleaning for errors in Deno tests #35

Open
dandv opened this issue Jan 13, 2025 · 0 comments · May be fixed by #36
Open

More cleaning for errors in Deno tests #35

dandv opened this issue Jan 13, 2025 · 0 comments · May be fixed by #36

Comments

@dandv
Copy link

dandv commented Jan 13, 2025

import cleanStack from 'npm:clean-stack';

Deno.test('clean-stack', () => {
  const e = new Error('message');
  console.log(cleanStack(e.stack, { pretty: true }));
})
$ deno test --allow-sys=homedir clean-stack.ts
Check file:///home/dandv/bugs/clean-stack.ts
running 1 test from ./clean-stack.ts
clean-stack ...
------- output -------
Error: message
    at file://~/bugs/clean-stack.ts:4:13
    at innerWrapped (ext:cli/40_test.js:191:11)
    at exitSanitizer (ext:cli/40_test.js:107:33)
    at outerWrapped (ext:cli/40_test.js:134:20)
----- output end -----
clean-stack ... ok (2ms)

ok | 1 passed | 0 failed (5ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants