mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 17:44:43 +03:00
8af3f7332a
* Add testing framework * Test query period picking behaviour
21 lines
484 B
JSON
21 lines
484 B
JSON
{
|
|
"clearMocks": true,
|
|
"coverageDirectory": "coverage",
|
|
"coverageProvider": "v8",
|
|
"testEnvironment": "jsdom",
|
|
"globals": {
|
|
"BUILD_EXTRA": true
|
|
},
|
|
"setupFiles": ["<rootDir>/test-utils/set-fixed-timezone.ts"],
|
|
"setupFilesAfterEnv": [
|
|
"<rootDir>/test-utils/extend-expect.ts",
|
|
"<rootDir>/test-utils/reset-state.ts"
|
|
],
|
|
"transform": {
|
|
"^.+.[tj]sx?$": ["ts-jest", {}]
|
|
},
|
|
"moduleNameMapper": {
|
|
"d3": "<rootDir>/node_modules/d3/dist/d3.min.js"
|
|
}
|
|
}
|