mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
feat: support code coverage (#1414)
This commit is contained in:
@@ -56,9 +56,10 @@ const nextConfig = {
|
||||
},
|
||||
experimental: {
|
||||
swcPlugins: [
|
||||
process.env.COVERAGE === 'true' && ['swc-plugin-coverage-instrument', {}],
|
||||
['@swc-jotai/debug-label', {}],
|
||||
// ['@swc-jotai/react-refresh', {}],
|
||||
],
|
||||
].filter(Boolean),
|
||||
},
|
||||
reactStrictMode: true,
|
||||
transpilePackages: [
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
"next-router-mock": "^0.9.2",
|
||||
"raw-loader": "^4.0.2",
|
||||
"redux": "^4.2.1",
|
||||
"swc-plugin-coverage-instrument": "^0.0.14",
|
||||
"typescript": "^4.9.5",
|
||||
"webpack": "^5.75.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user