Skip to content

Commit

Permalink
refactor(vue): refactor Authenticator (#4246)
Browse files Browse the repository at this point in the history
  • Loading branch information
wlee221 authored Jul 17, 2023
1 parent 6d14bf3 commit afbacb7
Show file tree
Hide file tree
Showing 51 changed files with 6,398 additions and 439 deletions.
2 changes: 2 additions & 0 deletions packages/vue/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ module.exports = {
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'vue/script-setup-uses-vars': 'error',
// we intentionally use non-null assertion where types are inaccurate.
'@typescript-eslint/no-non-null-assertion': 'off',
},
overrides: [
{
Expand Down
4 changes: 3 additions & 1 deletion packages/vue/global-spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import BaseAlert from './src/components/primitives/base-alert.vue';
import BaseSelect from './src/components/primitives/base-select.vue';
import BaseFieldSet from './src/components/primitives/base-field-set.vue';
import BaseFooter from './src/components/primitives/base-footer.vue';
import BaseForm from './src/components/primitives/base-form.vue';
import BaseHeading from './src/components/primitives/base-heading.vue';
import BaseInput from './src/components/primitives/base-input.vue';
import BaseLabel from './src/components/primitives/base-label.vue';
import BaseSelect from './src/components/primitives/base-select.vue';
import BaseText from './src/components/primitives/base-text.vue';
import BaseTwoTabItem from './src/components/primitives/base-two-tab-item.vue';
import BaseTwoTabs from './src/components/primitives/base-two-tabs.vue';
import BaseWrapper from './src/components/primitives/base-wrapper.vue';
Expand All @@ -21,6 +22,7 @@ export const components = {
BaseInput,
BaseLabel,
BaseSelect,
BaseText,
BaseTwoTabItem,
BaseTwoTabs,
BaseWrapper,
Expand Down
14 changes: 9 additions & 5 deletions packages/vue/jest.config.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
module.exports = {
collectCoverage: true,
collectCoverageFrom: ['<rootDir>/src/**/*.(ts|vue)'],
collectCoverageFrom: [
'<rootDir>/src/**/*.(ts|vue)',
// ignore ___mock__ directories
'!<rootDir>/**/__mock__/*',
],
coveragePathIgnorePatterns: [
// ignore coverage for subdirectories' index files
'<rootDir>/src/(components|composables|types)/index.ts',
Expand All @@ -9,10 +13,10 @@ module.exports = {
],
coverageThreshold: {
global: {
branches: 22,
functions: 22,
lines: 46,
statements: 45,
branches: 89,
functions: 90,
lines: 93,
statements: 93,
},
},
testEnvironment: 'jsdom',
Expand Down
Loading

0 comments on commit afbacb7

Please sign in to comment.