std/testing
Simon Holloway 0858ff8287
refactor(testing): prepare for noUncheckedIndexedAccess (#4084)
* refactor(testing): prepare for noUncheckedIndexedAccess

* tweaks

* fix(testing): returnsArg throws when no arg at index

* refactor(testing): sessions to use .at(-1) to get last item

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* non-null after check

* swap non-null assertions for as const

* proper error message

* more as const in the mock_test file

* fix tests for new behaviour

* tweak

* revert returnsArg handling back to `| undefined`

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-05 09:26:55 +11:00
..
__snapshots__ fix(testing/snapshot): distinguish between singular and plural forms (#3625) 2023-09-06 11:02:45 +09:00
_test_suite.ts chore: update copyright year (#4046) 2024-01-02 08:11:32 +11:00
_test_utils.ts chore: update copyright year (#4046) 2024-01-02 08:11:32 +11:00
_time.ts chore: update copyright year (#4046) 2024-01-02 08:11:32 +11:00
asserts.ts chore: update copyright year (#4046) 2024-01-02 08:11:32 +11:00
bdd_test.ts refactor(testing): prepare for noUncheckedIndexedAccess (#4084) 2024-01-05 09:26:55 +11:00
bdd.ts chore: update copyright year (#4046) 2024-01-02 08:11:32 +11:00
mock_test.ts refactor(testing): prepare for noUncheckedIndexedAccess (#4084) 2024-01-05 09:26:55 +11:00
mock.ts refactor(testing): prepare for noUncheckedIndexedAccess (#4084) 2024-01-05 09:26:55 +11:00
snapshot_test.ts chore: update copyright year (#4046) 2024-01-02 08:11:32 +11:00
snapshot.ts chore: update copyright year (#4046) 2024-01-02 08:11:32 +11:00
time_test.ts refactor(testing): prepare for noUncheckedIndexedAccess (#4084) 2024-01-05 09:26:55 +11:00
time.ts chore: update copyright year (#4046) 2024-01-02 08:11:32 +11:00
types_test.ts chore: update copyright year (#4046) 2024-01-02 08:11:32 +11:00
types.ts chore: update copyright year (#4046) 2024-01-02 08:11:32 +11:00