feat: harmonize log and metrics

This commit is contained in:
Michael Zetterberg
2025-04-17 07:16:11 +02:00
parent 858a81b16f
commit 5323a8e46e
58 changed files with 2324 additions and 4726 deletions

View File

@@ -3,15 +3,18 @@
* https://jestjs.io/docs/configuration
*/
import nextJest from "next/jest.js"
import { createJsWithTsEsmPreset } from "ts-jest"
import type { Config } from "jest"
const presetConfig = createJsWithTsEsmPreset()
const createJestConfig = nextJest({
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
dir: "./",
})
const config: Config = {
const config = {
// All imported modules in your tests should be mocked automatically
// automock: false,
@@ -202,6 +205,8 @@ const config: Config = {
// Whether to use watchman for file crawling
// watchman: true,
}
...presetConfig,
} satisfies Config
export default createJestConfig(config)