test: ignore coverage on data-center package
It will be removed soon.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
// Vitest Snapshot v1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
||||||
|
|
||||||
exports[`ProviderComposer 1`] = `
|
exports[`ProviderComposer 1`] = `
|
||||||
<DocumentFragment>
|
<DocumentFragment>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Vitest Snapshot v1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
||||||
|
|
||||||
exports[`usePageMetas > basic 1`] = `
|
exports[`usePageMetas > basic 1`] = `
|
||||||
<DocumentFragment>
|
<DocumentFragment>
|
||||||
|
|||||||
12
nyc.config.js
Normal file
12
nyc.config.js
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
|
const defaultExclude = require('@istanbuljs/schema/default-exclude');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
exclude: [
|
||||||
|
...defaultExclude,
|
||||||
|
// data-center will be removed in the future, we don't need to coverage it
|
||||||
|
'packages/data-center/**',
|
||||||
|
],
|
||||||
|
};
|
||||||
@@ -38,6 +38,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@affine/cli": "workspace:*",
|
"@affine/cli": "workspace:*",
|
||||||
|
"@istanbuljs/schema": "^0.1.3",
|
||||||
"@perfsee/sdk": "^1.5.1",
|
"@perfsee/sdk": "^1.5.1",
|
||||||
"@playwright/test": "^1.31.2",
|
"@playwright/test": "^1.31.2",
|
||||||
"@testing-library/react": "^14.0.0",
|
"@testing-library/react": "^14.0.0",
|
||||||
|
|||||||
@@ -26,6 +26,10 @@ export default defineConfig({
|
|||||||
provider: 'istanbul', // or 'c8'
|
provider: 'istanbul', // or 'c8'
|
||||||
reporter: ['lcov'],
|
reporter: ['lcov'],
|
||||||
reportsDirectory: '.coverage/store',
|
reportsDirectory: '.coverage/store',
|
||||||
|
exclude: [
|
||||||
|
// data center will be removed in the future
|
||||||
|
'packages/data-center',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -7831,6 +7831,7 @@ __metadata:
|
|||||||
resolution: "AFFiNE@workspace:."
|
resolution: "AFFiNE@workspace:."
|
||||||
dependencies:
|
dependencies:
|
||||||
"@affine/cli": "workspace:*"
|
"@affine/cli": "workspace:*"
|
||||||
|
"@istanbuljs/schema": ^0.1.3
|
||||||
"@perfsee/sdk": ^1.5.1
|
"@perfsee/sdk": ^1.5.1
|
||||||
"@playwright/test": ^1.31.2
|
"@playwright/test": ^1.31.2
|
||||||
"@testing-library/react": ^14.0.0
|
"@testing-library/react": ^14.0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user