mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-23 20:18:42 +08:00
feat: support code coverage (#1414)
This commit is contained in:
@@ -56,9 +56,10 @@ const nextConfig = {
|
|||||||
},
|
},
|
||||||
experimental: {
|
experimental: {
|
||||||
swcPlugins: [
|
swcPlugins: [
|
||||||
|
process.env.COVERAGE === 'true' && ['swc-plugin-coverage-instrument', {}],
|
||||||
['@swc-jotai/debug-label', {}],
|
['@swc-jotai/debug-label', {}],
|
||||||
// ['@swc-jotai/react-refresh', {}],
|
// ['@swc-jotai/react-refresh', {}],
|
||||||
],
|
].filter(Boolean),
|
||||||
},
|
},
|
||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
transpilePackages: [
|
transpilePackages: [
|
||||||
|
|||||||
@@ -56,6 +56,7 @@
|
|||||||
"next-router-mock": "^0.9.2",
|
"next-router-mock": "^0.9.2",
|
||||||
"raw-loader": "^4.0.2",
|
"raw-loader": "^4.0.2",
|
||||||
"redux": "^4.2.1",
|
"redux": "^4.2.1",
|
||||||
|
"swc-plugin-coverage-instrument": "^0.0.14",
|
||||||
"typescript": "^4.9.5",
|
"typescript": "^4.9.5",
|
||||||
"webpack": "^5.75.0"
|
"webpack": "^5.75.0"
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+6
@@ -181,6 +181,7 @@ importers:
|
|||||||
react-dom: ^18.2.0
|
react-dom: ^18.2.0
|
||||||
react-is: ^18.2.0
|
react-is: ^18.2.0
|
||||||
redux: ^4.2.1
|
redux: ^4.2.1
|
||||||
|
swc-plugin-coverage-instrument: ^0.0.14
|
||||||
swr: ^2.0.4
|
swr: ^2.0.4
|
||||||
typescript: ^4.9.5
|
typescript: ^4.9.5
|
||||||
webpack: ^5.75.0
|
webpack: ^5.75.0
|
||||||
@@ -235,6 +236,7 @@ importers:
|
|||||||
next-router-mock: 0.9.2_next@13.2.3+react@18.2.0
|
next-router-mock: 0.9.2_next@13.2.3+react@18.2.0
|
||||||
raw-loader: 4.0.2_webpack@5.75.0
|
raw-loader: 4.0.2_webpack@5.75.0
|
||||||
redux: 4.2.1
|
redux: 4.2.1
|
||||||
|
swc-plugin-coverage-instrument: 0.0.14
|
||||||
typescript: 4.9.5
|
typescript: 4.9.5
|
||||||
webpack: 5.75.0
|
webpack: 5.75.0
|
||||||
|
|
||||||
@@ -11967,6 +11969,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
|
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
/swc-plugin-coverage-instrument/0.0.14:
|
||||||
|
resolution: {integrity: sha512-bTti+296N3Okb7GOjZMn034nAaptywz3GgPF5WTp3b8FWOCuO9I9wldoBYFYPqk0tWNFbeNQKtxREMOnGEWTMg==}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/swr/2.0.4_react@18.2.0:
|
/swr/2.0.4_react@18.2.0:
|
||||||
resolution: {integrity: sha512-4GUiTjknRUVuw4MWUHR7mzJ9G/DWL+yZz/TgWDfiA0OZ9tL6qyrTkN2wPeboBpL3OJTkej3pexh3mWCnv8cFkQ==}
|
resolution: {integrity: sha512-4GUiTjknRUVuw4MWUHR7mzJ9G/DWL+yZz/TgWDfiA0OZ9tL6qyrTkN2wPeboBpL3OJTkej3pexh3mWCnv8cFkQ==}
|
||||||
engines: {pnpm: '7'}
|
engines: {pnpm: '7'}
|
||||||
|
|||||||
Reference in New Issue
Block a user