Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

16204 Fixed slow build + unit tests #500

Merged
merged 1 commit into from
May 24, 2023

Conversation

severinbeauvais
Copy link
Collaborator

@severinbeauvais severinbeauvais commented May 24, 2023

Issue #: bcgov/entity#16204

Description of changes:

  • app version = 4.4.1
  • restricted vue version to fix slow/frozen build process
  • fixed "rules" type errors
  • updated/fixed unit tests

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the bcrs-entities-create-ui license (Apache 2.0).

- restricted vue version to fix slow/frozen build process
- fixed "rules" type bugs
- updated unit tests
@@ -52,7 +52,7 @@
"tiptap-vuetify": "^2.24.0",
"uuid": "^9.0.0",
"v-sanitize": "^0.0.11",
"vue": "^2.7.14",
"vue": "2.7.10",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something happened in 2.7.11 that caused the build to take much longer and sometimes hang. Supposedly it was fixed... but it still happens in 2.7.14.

Note the lack of ^ so that npm doesn't automatically take the latest "2.x.x" version.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we check other UIs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -95,7 +95,7 @@
"vue-cli-plugin-vuetify": "^2.5.8",
"vue-plugin-helper-decorator": "^0.0.12",
"vue-property-decorator": "^9.1.2",
"vue-template-compiler": "2.7.14",
"vue-template-compiler": "2.7.10",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Must match vue version above.

@@ -37,7 +37,7 @@
label="Enter the NR Number"
hint="Example: NR 1234567"
persistent-hint
:rules="done && nrNumRules"
:rules="done ? nrNumRules : []"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix for error "expected array but got type boolean".

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jxio FYI

},
vuetify
})
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was some random error in here so I cleaned it up.

// Store required for component, although not read or modified in unit test.
setActivePinia(createPinia())

describe('SigningParty', () => {
let wrapper

beforeEach(() => {
wrapper = mount(SigningParty)
wrapper = mount(SigningParty, { vuetify })
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix for test error "did you register component v-row correctly?"

@codecov
Copy link

codecov bot commented May 24, 2023

Codecov Report

Merging #500 (4d8b706) into main (ae09408) will decrease coverage by 1.32%.
The diff coverage is 82.26%.

@@            Coverage Diff             @@
##             main     #500      +/-   ##
==========================================
- Coverage   86.96%   85.65%   -1.32%     
==========================================
  Files         195      202       +7     
  Lines        3645     3757     +112     
  Branches      444      468      +24     
==========================================
+ Hits         3170     3218      +48     
- Misses        462      524      +62     
- Partials       13       15       +2     
Impacted Files Coverage Δ
src/components/common/Detail.vue 100.00% <ø> (ø)
src/components/common/EffectiveDateTime.vue 100.00% <ø> (ø)
...omponents/common/PeopleAndRoles/PeopleAndRoles.vue 100.00% <ø> (ø)
src/components/common/YourCompany/index.ts 100.00% <ø> (ø)
src/dialogs/FetchErrorDialog.vue 100.00% <ø> (ø)
src/dialogs/FileAndPayInvalidNameRequestDialog.vue 100.00% <ø> (ø)
src/dialogs/PaymentErrorDialog.vue 100.00% <ø> (ø)
src/dialogs/SaveErrorDialog.vue 100.00% <ø> (ø)
...erfaces/state-interfaces/name-request-interface.ts 100.00% <ø> (ø)
src/resources/LimitedRestorationExtension/BC.ts 100.00% <ø> (ø)
... and 86 more

... and 2 files with indirect coverage changes

@severinbeauvais severinbeauvais merged commit a35a9ce into bcgov:main May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants