Commit Graph

239 Commits

Author SHA1 Message Date
Asher Gomez
bddda3c473
chore: remove deprecated APIs across collections, streams, textproto and uuid (#2720) 2022-09-30 16:27:11 +09:00
Asher Gomez
40d0466e46
chore(testing/bench): remove deprecated APIs (#2714) 2022-09-29 11:27:10 -04:00
Asher Gomez
b9f9caa7be
chore(collections): remove deprecated APIs (#2711) 2022-09-29 11:24:28 -04:00
Chris Chua
b7b7d76db1
fix: testing example pages failing to load (#2693)
These pages were erroring out on loading due to the use of "ignored" language.
2022-09-25 09:26:31 +02:00
Tim Reichen
2f7713a164
chore(tools): add deprecation check (#2613) 2022-09-15 16:06:04 +09:00
Yoshiya Hinosawa
eab5437413
fix(testing/asserts): temporarily disable background colors in diff (#2601) 2022-09-02 20:29:59 +09:00
Michael Gibson
e4f76568a6
fix(fs): use Deno.errors.AlreadyExists where appropriate (#2547) 2022-08-31 16:04:53 +09:00
Asher Gomez
fa6c014902
feat(testing): better assertFalse types (#2562) 2022-08-25 14:57:40 +09:00
Asher Gomez
f6bc3682df
feat(testing): better assertNotInstanceOf types (#2558)
Thanks @harrysolovay for the idea
2022-08-25 14:53:20 +09:00
Asher Gomez
3b9fb39ddd
chore: remove void and Promise<void> return types (#2550) 2022-08-24 10:21:57 +09:00
Yoshiya Hinosawa
d7fa0016c3
ci: fix browser type checking (#2549) 2022-08-23 19:06:52 +09:00
Asher Gomez
30f771dd17
feat(testing/asserts): add assertNotInstanceOf (#2530) 2022-08-18 16:29:57 +09:00
cuobiezi
2e7f2f521c
fix(testing): better assertEqual diff for object getters (#2509) 2022-08-12 15:06:52 +09:00
Kitson Kelly
e83306672e
docs: improve module documentation (#2511) 2022-08-11 21:51:20 +10:00
Jesper van den Ende
996d7afd4d
feat(testing): allow for stubbing non existent instance methods (#2487) 2022-08-11 12:03:33 +09:00
denobot
8379497298
0.151.0 (#2497) 2022-08-04 21:48:15 +02:00
Benjamin Fischer
66671c4495
fix(testing): add support for PromiseLike in assertRejects (#2443)
Fixes #2442
2022-07-17 09:01:14 +10:00
David Sherret
5cf22ead6b
chore: workaround swc emit issues (#2439) 2022-07-13 09:15:32 -04:00
Yoshiya Hinosawa
6728c574c1
docs(testing): add note about powershell usage (#2414) 2022-07-04 15:37:35 +09:00
Ben Heidemann
583554de46
feat: add createAssertSnapshot (#2403) 2022-07-02 18:24:42 +09:00
Colin Ihrig
f09d03143b
fix(testing): break out of Set equality check on match (#2394)
This commit updates the equality checking logic of Sets to
break out of an inner loop when a match occurs. Prior to this
commit, it was possible to perform too many comparisons, which
incorrectly made a counter in the code go below zero.

Fixes: https://github.com/denoland/deno_std/issues/2295
2022-06-27 17:15:59 -04:00
Kyle June
500ec9de4b
fix(testing/bdd): fix flat test grouping context (#2308) 2022-06-20 09:12:15 +09:00
denobot
55addb3ad1
0.144.0 (#2351)
* 0.144.0

* fix(Releases.md): update note about collections/mod.ts

Co-authored-by: David Sherret <dsherret@users.noreply.github.com>

* chore: fix formatting

* fix(tests): use `Deno.currentExe()` instead of `"deno"`

Co-authored-by: aslilac <aslilac@users.noreply.github.com>
Co-authored-by: Kayla Washburn <mckayla@hey.com>
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-06-15 16:05:49 -06:00
David Sherret
6303f047cc
chore(canary): update snapshot tests based on latest canary (#2347) 2022-06-14 20:53:42 -04:00
cuobiezi
4c1e1bff7c
fix: assertSnapshot errors on empty snapshot in non-update mode (#2269) 2022-05-30 15:21:05 +02:00
Yoshiya Hinosawa
f44696c5ef
docs(testing): improve docs of assertThrows and assertRejects (#2282) 2022-05-29 21:05:52 +09:00
Yoshiya Hinosawa
034c6e2833
test: fix unhandled promises in test cases (#2281) 2022-05-29 21:02:37 +09:00
Mark Ladyshau
1bba810b48
refactor: replace TS private with private identifiers (#2272) 2022-05-27 21:27:13 +09:00
Leo Kettmeir
852968f631
refactor: switch the Deno.spawn (#2161) 2022-05-25 11:08:27 +02:00
Mark Ladyshau
662f27ce84
feat(testing/asserts): return error from assertRejects and assertThrows (#2226)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-05-25 17:51:42 +09:00
Jesper van den Ende
11b2b7f7f7
BREAKING(testing/asserts): remove implicit any types from assert signatures. (#2203) 2022-05-20 14:08:49 +02:00
Colin Ihrig
f6ce58db39
BREAKING(testing): use Object.is() for strict equality (#2244)
This commit updates assertStrictEquals(), assertAlmostEquals(),
and assertNotStrictEquals() to use Object.is() instead of the
=== operator. The reason is that Object.is() better matches
user expectations of an assertion library in a couple edge
cases. It also better aligns with the behavior of at least one
other runtime's assertion library (Node.js).

Fixes: https://github.com/denoland/deno_std/issues/2151
2022-05-19 14:43:42 -04:00
Thomas Cruveilher
981dd90946
fix(assertRejects): fails on synchronous throw #1302 (#2234)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-05-18 13:48:18 +09:00
David Sherret
dfbb3f9e21
fix(testing/bdd): support using bdd tests with dnt (#2235)
fix: support using bdd tests with dnt
2022-05-15 16:33:53 -04:00
Yoshiya Hinosawa
436c3a7b25
test(testing/snapshot): update snapshot expections (#2210) 2022-05-10 19:39:50 +09:00
Ben Heidemann
bab7056ff0
feat(testing/snapshot): add "assertSnapshot" options overload (#2179) 2022-05-06 22:05:27 +09:00
Eliaz Bobadilla
4a44ee3869
docs(testing): document assertFalse in README (#2175) 2022-05-03 22:11:12 +09:00
Ben Heidemann
d9fd8a171a
BREAKING(testing/snapshot): change multiline string serialization (#2166) 2022-05-03 21:21:11 +09:00
Mathis Bullinger
3dd6843571
fix(testing): Compare circular objects (#2172)
The "equal" function keeps track of encountered objects by adding 
them to "seen". Encountered objects must be added to "seen" before 
the first recursive call to "compare" because otherwise the "compare"
function will infinitely recurse when comparing circular objects.
2022-05-01 14:50:44 +02:00
Eliaz Bobadilla
8ee4023df8
feat(testing): assertFalse (#2093) 2022-04-30 20:20:00 +09:00
Ben Heidemann
3103d39fe3
test(testing/snapshot): add regression test for Deno.inspect compacting empty iterables (#2152) 2022-04-27 09:55:37 +09:00
Jesper van den Ende
c258af35ad
feat(testing): infer stub and spy return types from properties (#2137) 2022-04-26 22:34:42 +09:00
Ben Heidemann
0ea7b3f2b3
test(testing/snapshot): fix unexpected truncation of long strings in snapshots (#2150) 2022-04-26 12:54:45 +09:00
David Sherret
f4474d6817
chore: deno fmt with 1.21.0 (#2132) 2022-04-21 00:27:28 -04:00
Yongwook Choi
7b44ec31cd
feat(testing): Implement "assertSnapshot" (#2039)
This commits adds "assertSnapshot" API as part of "testing" module.

This API is modelled after Jest's API and can be used to compare
test results with previously saved result in a file.

Co-authored-by: Ben Heidemann <ben@heidemann.co.uk>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-04-20 13:46:21 +02:00
Kyle June
85950b9219
feat(testing): add TestContext argument to "it" function (#2117) 2022-04-17 01:23:49 +02:00
Kyle June
403f226a20
feat(testing): add utility for faking time (#2069)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-04-14 15:29:17 +09:00
Yoshiya Hinosawa
e224f047ae
BREAKING(testing/bench): deprecate testing/bench module (#2104)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-04-13 21:58:50 +09:00
Kyle June
5f764b9499
feat(testing): add behavior-driven development (#2067) 2022-04-08 14:01:46 +09:00
Jesper van den Ende
c347251139
docs(testing): Fix typo (#2082) 2022-04-05 15:36:41 +02:00