Skip to content

Commit 4480cc2

Browse files
committed
fix: updated npm packages
fixed typecheck fixed jest config fixed package-json types
1 parent 2ac45dc commit 4480cc2

6 files changed

+1088
-1183
lines changed

coverage/badge.svg

+1-1
Loading

coverage/coverage-summary.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{"total": {"lines":{"total":53,"covered":53,"skipped":0,"pct":100},"statements":{"total":66,"covered":66,"skipped":0,"pct":100},"functions":{"total":18,"covered":18,"skipped":0,"pct":100},"branches":{"total":43,"covered":43,"skipped":0,"pct":100},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":"Unknown"}}
2-
,"/home/runner/work/vue-search-input/vue-search-input/src/SearchInput.types.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
3-
,"/home/runner/work/vue-search-input/vue-search-input/src/SearchInput.vue": {"lines":{"total":52,"covered":52,"skipped":0,"pct":100},"functions":{"total":18,"covered":18,"skipped":0,"pct":100},"statements":{"total":65,"covered":65,"skipped":0,"pct":100},"branches":{"total":43,"covered":43,"skipped":0,"pct":100}}
1+
{"total": {"lines":{"total":95,"covered":90,"skipped":0,"pct":94.73},"statements":{"total":103,"covered":97,"skipped":0,"pct":94.17},"functions":{"total":28,"covered":26,"skipped":0,"pct":92.85},"branches":{"total":79,"covered":72,"skipped":0,"pct":91.13},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":"Unknown"}}
2+
,"/var/www/vue-search-input/src/SearchInput.types.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
3+
,"/var/www/vue-search-input/src/SearchInput.vue": {"lines":{"total":94,"covered":89,"skipped":0,"pct":94.68},"functions":{"total":28,"covered":26,"skipped":0,"pct":92.85},"statements":{"total":102,"covered":96,"skipped":0,"pct":94.11},"branches":{"total":79,"covered":72,"skipped":0,"pct":91.13}}
44
}

jest.config.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ module.exports = {
99
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(js|ts)$',
1010
moduleFileExtensions: ['vue', 'js', 'ts'],
1111
moduleNameMapper: {
12-
// Fix in order for vue-test-utils to work with Jest 28
13-
// https://github.com/vuejs/vue-test-utils/issues/1975
14-
'^@vue/test-utils$': require.resolve('@vue/test-utils'),
1512
'^@/(.*)$': '<rootDir>/src/$1',
1613
'^@playground/(.*)$': '<rootDir>/playground/$1',
1714
'^@root/(.*)$': '<rootDir>/$1'
1815
},
1916
coveragePathIgnorePatterns: ['/node_modules/', '/playground/', '/tests/'],
20-
coverageReporters: ['text', 'json-summary']
17+
coverageReporters: ['text', 'json-summary'],
18+
// Fix in order for vue-test-utils to work with Jest 28
19+
// https://github.com/vuejs/vue-jest/issues/479
20+
testEnvironmentOptions: {
21+
customExportConditions: ['node', 'node-addons']
22+
}
2123
}

0 commit comments

Comments
 (0)