Skip to content

Commit

Permalink
fix: updated npm packages
Browse files Browse the repository at this point in the history
fixed typecheck
fixed jest config
fixed package-json types
  • Loading branch information
kouts committed Nov 10, 2022
1 parent 2ac45dc commit 4480cc2
Show file tree
Hide file tree
Showing 6 changed files with 1,088 additions and 1,183 deletions.
2 changes: 1 addition & 1 deletion coverage/badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions coverage/coverage-summary.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{"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"}}
,"/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}}
,"/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}}
{"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"}}
,"/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}}
,"/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}}
}
10 changes: 6 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ module.exports = {
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(js|ts)$',
moduleFileExtensions: ['vue', 'js', 'ts'],
moduleNameMapper: {
// Fix in order for vue-test-utils to work with Jest 28
// https://github.com/vuejs/vue-test-utils/issues/1975
'^@vue/test-utils$': require.resolve('@vue/test-utils'),
'^@/(.*)$': '<rootDir>/src/$1',
'^@playground/(.*)$': '<rootDir>/playground/$1',
'^@root/(.*)$': '<rootDir>/$1'
},
coveragePathIgnorePatterns: ['/node_modules/', '/playground/', '/tests/'],
coverageReporters: ['text', 'json-summary']
coverageReporters: ['text', 'json-summary'],
// Fix in order for vue-test-utils to work with Jest 28
// https://github.com/vuejs/vue-jest/issues/479
testEnvironmentOptions: {
customExportConditions: ['node', 'node-addons']
}
}
Loading

0 comments on commit 4480cc2

Please sign in to comment.