Skip to content

Commit

Permalink
test: ignore coverage on data-center package
Browse files Browse the repository at this point in the history
It will be removed soon.
  • Loading branch information
himself65 committed Mar 25, 2023
1 parent d8e48ef commit 0968a26
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Vitest Snapshot v1
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`ProviderComposer 1`] = `
<DocumentFragment>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Vitest Snapshot v1
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`usePageMetas > basic 1`] = `
<DocumentFragment>
Expand Down
12 changes: 12 additions & 0 deletions nyc.config.js
Original file line number Diff line number Diff line change
@@ -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/**',
],
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
"devDependencies": {
"@affine/cli": "workspace:*",
"@istanbuljs/schema": "^0.1.3",
"@perfsee/sdk": "^1.5.1",
"@playwright/test": "^1.31.2",
"@testing-library/react": "^14.0.0",
Expand Down
4 changes: 4 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ export default defineConfig({
provider: 'istanbul', // or 'c8'
reporter: ['lcov'],
reportsDirectory: '.coverage/store',
exclude: [
// data center will be removed in the future
'packages/data-center',
],
},
},
});
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7831,6 +7831,7 @@ __metadata:
resolution: "AFFiNE@workspace:."
dependencies:
"@affine/cli": "workspace:*"
"@istanbuljs/schema": ^0.1.3
"@perfsee/sdk": ^1.5.1
"@playwright/test": ^1.31.2
"@testing-library/react": ^14.0.0
Expand Down

0 comments on commit 0968a26

Please sign in to comment.