summaryrefslogtreecommitdiff
path: root/cli/tests/unit/console_test.ts
AgeCommit message (Collapse)Author
2022-04-25feat(ext/console): Add string abbreviation size option for "Deno.inspect" ↵Ben Heidemann
(#14384)
2022-03-20fix(ext/console): fix error with a Proxy of a Map (#14032)Jason
2022-03-02feat(cli): update to TypeScript 4.6.2 (#13474)Kitson Kelly
2022-02-06fix(ext/console): fix uncaught TypeError in css styling (#13567)Zach
When using css coloring in the console, non-color values should be ignored rather than throw exceptions. Fixes #13469
2022-02-04feat(ext/console): better circular information in object inspection (#13555)Leo Kettmeir
2022-01-20chore: update copyright year (#13434)Yoshiya Hinosawa
2021-12-23fix(ext/console): map basic css color keywords to ansi (#13175)Zach
2021-11-23refactor: remove "unitTest" wrapper from cli/tests/unit (#12750)Bartek Iwańczuk
2021-10-30feat(ext/console): Display error.cause in console (#12462)Kenta Moriuchi
2021-10-14fix(console): fix display of primitive wrapper objects (#12425)Kenta Moriuchi
2021-09-04refactor(testing): redirect console output via reporter (#11911)Casper Beyer
This feeds console output to the reporter and handles silencing there instead of in the JavaScript code.
2021-08-24feat(extensions/console): right align numeric columns in table (#11748)Nicolas Stucki
2021-08-05refactor(cli/tests): remove unnecessary void return types (#11577)Leo K
2021-07-07fix(extensions/console): left align table entries (#11295)Divy Srivastava
2021-07-05chore: upgrade crates (#11284)Bartek Iwańczuk
2021-06-27feat(inspector): pipe console messages between terminal and inspector (#11134)Bartek Iwańczuk
This commit adds support for piping console messages to inspector. This is done by "wrapping" Deno's console implementation with default console provided by V8 by the means of "Deno.core.callConsole" binding. Effectively each call to "console.*" methods calls a method on Deno's console and V8's console.
2021-06-25chore(ext/console): deprecate Deno.customInspect (#10035)Yoshiya Hinosawa
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-06-15fix(inspector): Deno.inspect should inspect the object the proxy represents ↵David Sherret
rather than the target of the proxy (#10977)
2021-04-27fix(console): circular customInspect (#10338)Aaron O'Mullan
2021-04-11fix(op_crates/console): console.table value misalignment with varying keys ↵Liam Murphy
(#10127)
2021-04-09chore: upgrade dependencies (#10094)Bartek Iwańczuk
This commit upgrades: - swc_ecmascript - swc_bundler - deno_doc - deno_lint - dprint-plugin-typescript
2021-03-18chore(console): distinguish between log levels (#9824)Luca Casonato
Change `Console.#printFunc` to pass a log level as the second argument (0 = debug, 3 = error), instead of a boolean for `isErr`. This does not change the Deno runtime behaviour at all.
2021-02-10fix(console): log function object properties / do not log non-enumerable ↵David DeSimone
props by default (#9363)
2021-02-02chore: remove std directory (#9361)Casper Beyer
This removes the std folder from the tree. Various parts of the tests are pretty tightly dependent on std (47 direct imports and 75 indirect imports, not counting the cli tests that use them as fixtures) so I've added std as a submodule for now.
2021-01-14fix: don't swallow customInspect exceptions (#9095)Steven Guerrero
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2021-01-10tests(wpt/console): Enables web platform tests for console (#9013)Tarik Eshaq
2020-11-03build: migrate to dlint (#8176)Bartek Iwańczuk
This commit migrates repository from using "eslint" to "dlint" for linting JavaScript code.
2020-10-26rename(std/testing): rename assert*Contains to assert*Includes (#7951)Tim Reichen
This commit renames two assertion functions to better align with JS API: - assertStringContains -> assertStringIncludes - assertArrayContains -> assertArrayIncludes
2020-10-17upgrade: deno_doc, deno_lint, dprint, swc (#8009)Bartek Iwańczuk
2020-10-14fix(console): fix the test cases of function inspections (#7965)Yoshiya Hinosawa
2020-10-11fix(console): fix inspection of Function (#7930)Yoshiya Hinosawa
This commit fixes the inspection of functions. The current implementation gets the name of the type of the function from "f.__proto__.constructor.name", and it throws when the prototype is set to null. This commit checks the prototype before accessing its constructor name and uses the generic name 'Function' if the prototype is not available.
2020-10-11fix(cli/console): only inspect getters with option (#7830)Casper Beyer
2020-10-07fix(cli/rt/console): Don't require a prototype to detect a class instance ↵Nayeem Rahman
(#7869)
2020-10-05perf(cli/console): Don't add redundant ANSI codes (#7823)Nayeem Rahman
2020-10-02upgrade: swc, deno_doc, deno_lint, dprint (#7793)Bartek Iwańczuk
2020-10-01fix(cli/console): Catch and format getter errors (#7766)Nayeem Rahman
2020-09-30feat(cli/console): Add Deno.InspectOptions::colors (#7742)Nayeem Rahman
Ref: https://github.com/denoland/deno/pull/7516#pullrequestreview-489567120
2020-09-25fix(cli): customInspect works on functions (#7670)Kitson Kelly
Fixes #7650
2020-09-23fix(cli/console): quote non-alphanumeric symbols (#7641)Casper Beyer
This quotes and escapes symbol descriptions that contains characters outside of the basic alpha-numeric identifier range.
2020-09-23fix(cli/console): enclose symbol keys in brackets (#7642)Casper Beyer
This encloses symbol keys when used in objects with brackets (e.g [Symbol("Symbol.iterator")]).
2020-09-22fix(cli/console): quote object symbol keys that are invalid identifiers (#7553)Casper Beyer
2020-09-18fix(cli/console): surround non alpha-numeric object keys with quotes (#7550)Casper Beyer
2020-09-18fix(cli/console): always quote and escape inspected strings (#7546)Casper Beyer
2020-09-17fix(cli/console): escape non printable characters in object entries (#7533)Casper Beyer
2020-09-14test(cli/tests/unit): Enable color for js_unit_tests (#7443)Nayeem Rahman
2020-09-10feat(console): support CSS styling with "%c" (#7357)Nayeem Rahman
2020-09-08feat(console): print proxy details (#7139)uki00a
2020-08-31chore: remove unreachable code to pass linter (#7270)Yusuke Tanaka
2020-08-24fix(console): handle escape sequences when logging objects (#7171)Tuan Le