mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-10-23 17:32:22 +00:00
Add ts-auto-mock and ts-node and transformer for better mocks.
This commit is contained in:
3 files changed
+139
-3
No files matched your search
@@ -0,0 +1,11 @@
|
||||
// SPDX-FileCopyrightText: 2024 Gnuxie <Gnuxie@protonmail.com>
|
||||
//
|
||||
// SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
const tsAutoMockTransformer = require("ts-auto-mock/transformer").default;
|
||||
require("ts-node").register({
|
||||
project: "./tsconfig.json",
|
||||
transformers: (program) => ({
|
||||
before: [tsAutoMockTransformer(program)],
|
||||
}),
|
||||
});
|
||||
Reference in new issue
Block a user