Skip to content

Commit

Permalink
Ongoing PPR Unit testing (#1626)
Browse files Browse the repository at this point in the history
* Vue3 Build (#1594)

* Vue3/Vuetify3/Vite-Build

* wip: Up to Searches

* wip: Search Features

* Wip: PPR Search Done - Onto Mhr Search Results

* Refactors generally completed on PPR/MHR Searches and history

* CI Updates

* update dockerfil

* revert docker file udpates

* docker change reverse

* Docker update

* docker node version update

* last attempt at ci build

* vue-affix removal

* Lint Fixes

* lint config updates

* Modernized Linting for Vue and Typescript -- Applied non functional fixes

* Updated vue declaration

* Vuetify and component updates - PRR (#1609)

* base dialog and Staff Payment instances updated

* ongoing PPR Table work

* Ongoin PPR Registrations/Amendment updates

* Ongoing PPR Reg - Includes stepper, footers, Bus Search, Base Address

* Ppr Registrations Happy Path

* Chips and other misc fixes for Amendments

* Vuetify Fixes for MHR and Misc Features (#1615)

* Mhr Registrations Happy Path

* Ongoing Registration Table Improvements

* User access Start, some more table clean up

* User Access Fixes + more table updates

* Cleaned up Tables Sorting

* Further Transfer and Unit Note Adjustments

* Masking fixes and replacements

* Date Pickers and misc styling adjustments

* Lint Sweeps and camelCase enforcement

* Reg Table Fix and command revert

* Further DatePicker Updates

* ViTest: Unit Testing Setup/Config/Utils and Ongoing Refactoring (#1623)

* Ongoing Unit Test fixes

* Ongoing PPR Test fixes - Includes base setup - solves most complexity - now test fixes

* more test config updates and unit test fixes

* button-footer rework

* Further Testing updates - Up to Debtors

* continued testing updates DischargeReg

* Tests up to EditTrust and more cleanup

* PR CleanUP

* Few more tests - up to FeeSummary

* FeeSummary test

* Lint update

* fee summary file clean up

* Sync Clean Up

* Ongoing test work

* Delete .idea directory
  • Loading branch information
cameron-eyds authored Nov 20, 2023
1 parent 92c6c62 commit 157c854
Show file tree
Hide file tree
Showing 332 changed files with 26,786 additions and 47,991 deletions.
4 changes: 4 additions & 0 deletions ppr-ui/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
dist/
public/
tests/
39 changes: 19 additions & 20 deletions ppr-ui/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@
module.exports = {
root: true,
env: {
node: true
node: true,
es2022: true
},
plugins: ['vue'],
extends: [
'plugin:vue/essential',
'@vue/standard',
'@vue/typescript',
'plugin:vue/base',
'plugin:vuetify/base',
'plugin:vuetify/recommended'
'plugin:vue/vue3-recommended',
'@vue/typescript/recommended'
],
rules: {
'@typescript-eslint/no-explicit-any': ['warn'],
'object-curly-spacing': ['error', 'always'],
'standard/computed-property-even-spacing': 'off',
'vue/multi-word-component-names': 'off',
'vue/no-side-effects-in-computed-properties': 'off',
'vue/valid-v-slot': ['error', { allowModifiers: true }],
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'max-len': ['warn', { code: 120, ignoreRegExpLiterals: true }]
'max-len': ['warn', { code: 120, ignoreRegExpLiterals: true }],
'vue/require-explicit-emits': 'error',
'vue/require-default-prop': 'error',
'vue/require-prop-types': 'error',
'vue/no-template-shadow': 'error',
'vue/attribute-hyphenation': 'off',
'vue/v-on-event-hyphenation': 'off',
'vue/prop-name-casing': ['error', 'camelCase'],
'vue/custom-event-name-casing': ['error', 'camelCase']
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint']
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
}
]
sourceType: 'module'
}
}
16 changes: 8 additions & 8 deletions ppr-ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
FROM node:15-buster as build-stage
FROM node:20.5.1 as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY ./ .
RUN npm run build

FROM nginx:1.18 as production-stage

ARG VCS_REF="missing"
ARG BUILD_DATE="missing"
Expand All @@ -9,13 +16,6 @@ ENV BUILD_DATE=${BUILD_DATE}
LABEL org.label-schema.vcs-ref=${VCS_REF} \
org.label-schema.build-date=${BUILD_DATE}

WORKDIR /app
COPY package*.json ./
RUN npm install
COPY ./ .
RUN npm run build

FROM nginx:1.18 as production-stage
COPY nginx.conf /etc/nginx/nginx.conf
RUN mkdir /app
COPY --from=build-stage /app/dist /app
Expand Down
5 changes: 0 additions & 5 deletions ppr-ui/babel.config.js

This file was deleted.

21 changes: 21 additions & 0 deletions ppr-ui/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>BC Personal Property Registry</title>
<link rel="icon" href="/favicon.png">
<link rel="stylesheet" href="/css/addresscomplete-2.30.min.css">
<script type="text/javascript" src="/js/addresscomplete-2.30.min.js" defer></script>
</head>
<body>
<noscript>
<strong>We're sorry but the BC Personal Property Registry doesn't work properly without JavaScript enabled.
Please enable it to continue.
</strong>
</noscript>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading

0 comments on commit 157c854

Please sign in to comment.