summaryrefslogtreecommitdiff
path: root/cli/tests/unit/console_test.ts
AgeCommit message (Collapse)Author
2023-01-02chore: update copyright year to 2023 (#17247)David Sherret
Yearly tradition of creating extra noise in git.
2022-11-22fix(inspector): ensure console methods provided by inspector are available ↵Bartek Iwańczuk
(#16724)
2022-10-10fix sparse array inspection (#16204)sigmaSd
fix https://github.com/denoland/deno/issues/16202
2022-09-26fix(ext/console): fix error when logging a proxied Date (#16018)李瑞丰
2022-09-26perf(ext/console): break on iterableLimit & better sparse array handling ↵Marcos Casagrande
(#15935)
2022-09-20feat(cli): update to TypeScript 4.8 (#15064)Kitson Kelly
2022-09-02fix(cli/repl): await Promise.any([])... (#15623)Jason
2022-06-15fix(console): constrol inspect() indent with option (#14867)cjihrig
This commit updates the Deno.inspect() logic to use the indentLevel option to control indentation instead of passing around separate indent/level parameters internally. Refs: https://github.com/denoland/deno/issues/8099 Refs: https://github.com/denoland/deno/issues/14171
2022-06-13feat(console): pass options and depth to custom inspects (#14855)Colin Ihrig
This commit updates Deno.inspect() to pass inspect options and the current inspect depth to custom inspect functions. Refs: https://github.com/denoland/deno/issues/8099 Refs: https://github.com/denoland/deno/issues/14171
2022-05-25chore: upgrade test_util/std/ submodule (#14722)Bartek Iwańczuk
2022-04-26feat(ext/console): Compact empty iterables when calling Deno.inspect with ↵Ben Heidemann
compact false (#14387)
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