feat: harmonize log and metrics
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user