From 02b1ab045fdb1b768722e2e305017cda6293ebe4 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 26 Sep 2021 14:09:04 +0900 Subject: Configure jest --- jest.config.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 jest.config.ts diff --git a/jest.config.ts b/jest.config.ts new file mode 100644 index 0000000..e058adf --- /dev/null +++ b/jest.config.ts @@ -0,0 +1,11 @@ +import type { Config } from "@jest/types"; + +const config: Config.InitialOptions = { + verbose: true, + testMatch: ["**/test/**/*.test.+(ts|tsx|js|jsx)"], + transform: { + "^.+\\.(ts|tsx)$": "ts-jest", + }, + setupFiles: ["./test/main.ts"], +}; +export default config; -- cgit v1.2.3