From 3a44d5fa48e8b28a7b9422a18262e39af1d1cb91 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Tue, 24 Jan 2023 22:51:25 +0100 Subject: feat(date): introduce faker.defaultRefDate and setDefaultRefDate (#1757) Co-authored-by: Shinigami --- scripts/apidoc.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') diff --git a/scripts/apidoc.ts b/scripts/apidoc.ts index 3e11572e..352ec978 100644 --- a/scripts/apidoc.ts +++ b/scripts/apidoc.ts @@ -1,4 +1,5 @@ import { resolve } from 'path'; +import { faker } from '../src'; import { writeApiPagesIndex, writeApiSearchIndex, @@ -13,6 +14,7 @@ const pathOutputJson = resolve(pathOutputDir, 'typedoc.json'); async function build(): Promise { await initMarkdownRenderer(); + faker.setDefaultRefDate(Date.UTC(2023, 0, 1)); const app = newTypeDocApp(); -- cgit v1.2.3