Commit Graph
120 Commits
Author SHA1 Message Date
Andrew ScottandGitHub ac15cfb459 feat(jest-fake-timers): Add feature to configure how timers advance (#15871) 2025-10-27 11:50:52 +01:00
Svyatoslav ZaytsevandGitHub b334764932 docs: fix documentation (#14294) (#15649) 2025-06-04 15:44:43 +09:00
Svyatoslav ZaytsevandGitHub 08fa08f74b fix: pass modulePath instead of moduleName to onGenerateMock callback (#15429) (#15482) 2025-04-04 10:17:08 +02:00
Svyatoslav ZaytsevandGitHub 48557794a3 feat: add onGenerateMock transformer callback (#15429) (#15433) 2025-01-15 10:24:14 +00:00
Vadzim LindoandGitHub 0b07987baa feat: add retryImmediately option to jest.retryTimes (#14977) 2024-03-26 09:21:52 +01:00
Lenz Weber-TronicandGitHub b016bf62e9 feat: add support for Explicit Resource Management to mocked functions (#14895) 2024-02-20 11:09:31 +01:00
Gina Beth RussellandGitHub 404a6b75cb docs: clarify now in fake timers are in milliseconds (#14747) 2023-12-25 12:31:17 +01:00
Willian AgostiniandGitHub 5ddaf710f9 feat: add a waitBeforeRetry option to jest.retryTimes (#14738) 2023-12-25 11:59:51 +01:00
Muhammad Faizan UddinandGitHub 55b06af82e Fix jest.spyOn() unit test in JestObjectAPI.md (#14625) 2023-12-24 12:34:44 +01:00
Alex ReardonandGitHub b19f25d0ca feat: add jest.advanceTimersToFrame() (#14598) 2023-10-05 07:00:08 +02:00
Michael KnightandGitHub ec9862d361 chore: Fix numerous broken links in docs. (#14560) 2023-09-23 08:53:15 +02:00
Vinicius Morais DutraandGitHub e348ed2777 docs: incorrect specification to the method jest.replaceProperty (#14388) 2023-08-16 08:20:53 +02:00
Frazer SmithandGitHub 757cc13538 chore: update jest repo organisation in urls (#14413) 2023-08-15 15:00:44 +02:00
Tom MrazauskasandGitHub 6aeee633bd docs: refactor jest.retryTimes() documentation (#13987) 2023-04-22 09:48:18 +02:00
Tom MrazauskasandGitHub 5d4c6b922c docs: fix link in The Jest Object page (#13986) 2023-04-08 10:49:51 +02:00
Luca PizziniandGitHub 4b5b5468e5 feat(jest-runtime): expose @sinonjs/fake-timers async APIs (#13981) 2023-03-06 14:26:15 +01:00
Tom MrazauskasandGitHub d544040b9a docs: add documentation of the jest.deepUnmock() method (#13774) 2023-01-17 07:40:18 +01:00
Tom MrazauskasandGitHub 3229fe3609 refactor(@jest/environment): keep alphabetic order in the Jest interface (#13773) 2023-01-17 07:39:53 +01:00
R. N. WestandGitHub 6c2cbbd153 docs: fix various grammatical errors (#13768) 2023-01-15 11:54:26 +01:00
Simen Bekkhus d9986cf27f docs: add entry for isEnvironmentTornDown 2023-01-15 11:50:47 +01:00
arash-hackerandGitHub 3baebb1edd Fix: typo video.play from spyOn #JestObjectAPI.md (#13747) 2023-01-10 12:21:02 +01:00
Michal KočárekandGitHub 03945c598c feat: Allow mocking property value in tests (#13496) 2023-01-04 11:21:38 +01:00
Valentín CostaandGitHub 8912130d8c docs: replace a wrong period with a comma (#13634) 2023-01-03 07:19:34 +01:00
Michele MancioppiandGitHub 58d9251f85 [Feature]: add isolateModulesAsync (#13680) 2022-12-31 20:28:14 +01:00
Tom MrazauskasandGitHub 762fe141aa feat(@jest/globals, jest-mock): add jest.Spied* utility types (#13440) 2022-10-16 15:55:21 +02:00
JoshandGitHub 4a2c0493c6 feat: add a seed value to test runs (#13400) 2022-10-09 18:40:42 +02:00
Tom MrazauskasandGitHub c56fdc95ec chore(lint): use jest/prefer-to-have-length rule (#13370) 2022-10-03 15:50:06 +02:00
Tom MrazauskasandGitHub d4c7197278 chore(lint): use jest/prefer-to-be rule (#13369) 2022-10-03 14:07:11 +02:00
Tom MrazauskasandGitHub ccf2022105 docs: use admonitions in Jest Object page v29 (#13280) 2022-09-20 08:34:08 +02:00
Tom MrazauskasandGitHub 594bcc884a docs: use admonitions in Jest object page (#13277) 2022-09-17 20:20:33 +02:00
Tom MrazauskasandGitHub a8cc9fb94b feat(@jest/environment): allow jest.mock and jest.doMock to take a type argument (#13254) 2022-09-13 08:50:14 +02:00
Tom MrazauskasandGitHub 021e6f7e91 feat(@jest/environment, jest-runtime): allow requireActual and requireMock to take a type argument (#13253) 2022-09-13 08:20:41 +02:00
Rob HoganandGitHub 7a9afa0588 fix(jest-fake-timers): Return real Date.now() from jest.now() when real timers are in use (#13246) 2022-09-10 20:37:33 +02:00
Rob HoganandGitHub ee73fd2eba (jest-fake-timers): Add now() API to get the fake clock time (#13244) 2022-09-10 19:28:43 +02:00
Tom MrazauskasandGitHub b4add8fdd4 docs: use TypeScript Examples Note partial (#13212) 2022-09-06 00:09:13 +02:00
Tom MrazauskasandGitHub 75fde03837 feat(@jest/environment, jest-runtime): allow passing a generic type argument to jest.createMockFromModule<T>() method (#13202) 2022-09-03 13:18:17 +02:00
Tom MrazauskasandGitHub 19fbb3b6fb refactor(jest-mock)!: change the default jest.mocked helper’s behaviour to deep mocked (#13125) 2022-08-13 12:50:16 +02:00
Miguel YaxandGitHub 35aaa401e1 Update spyOn docs (#13000) 2022-07-13 10:05:53 +02:00
Mike MacCanaandGitHub 668751a467 Make it clearer that jest.setTimeout() is for the entire file (#12809) 2022-05-06 12:30:53 +02:00
aeefb90889 Support error logging before jest retry (#12201)
Co-authored-by: Zachary Bogard <[email protected]>
2022-04-23 11:38:48 +02:00
Tom MrazauskasandGitHub 3ef93107f6 feat(fake-timers)!: allow jest.useFakeTimers() and projectConfig.fakeTimers to take an options bag (#12572) 2022-04-05 16:48:15 +02:00
MatthiasandGitHub b37c703b42 Add contexts to mocks (#12601) 2022-03-29 10:05:48 +02:00
Simen Bekkhus 8eadcce3cc chore: format docs as MDX 2022-03-05 09:34:56 +01:00
Simen BekkhusandGitHub 2c8c8aea85 chore: update docusaurus (#12500) 2022-03-05 09:34:38 +01:00
Tom MrazauskasandGitHub 5d15ff6a25 refactor(jest-mock)!: simplify usage of jest.fn generic type arguments (#12489) 2022-02-26 19:39:26 +01:00
Michael JuddandGitHub c5e6bb7bc1 chore(docs): add note about retryTimes placement (#12212) 2022-02-05 09:08:14 +01:00
RajatandGitHub 8d426e62e8 fix(docs) fixing error in example of jest.mocked (#12174) 2021-12-23 00:45:54 +01:00
RajatandGitHub f68aee9401 adding ts-jest mock util functions in jest-mock (#12089) 2021-11-29 14:07:56 +01:00
mrazauskasandGitHub 14f1269117 fix(docs): add missing table of contents to The Jest Object documentation page (#12039) 2021-11-05 07:49:38 +01:00
BIKI DASandGitHub d01a135b7e Correcting mockClear api docs (#12019) 2021-11-02 20:49:29 +01:00