Upgrade more packages - only 47 moderate vuln left!!!
This commit is contained in:
parent
294add9d16
commit
4475c642a0
9 changed files with 6425 additions and 15622 deletions
|
|
@ -3,7 +3,7 @@ module.exports = {
|
||||||
coverageReporters: ["html", "text", "jest-junit", "cobertura"],
|
coverageReporters: ["html", "text", "jest-junit", "cobertura"],
|
||||||
testResultsProcessor: "jest-junit",
|
testResultsProcessor: "jest-junit",
|
||||||
preset: "@vue/cli-plugin-unit-jest",
|
preset: "@vue/cli-plugin-unit-jest",
|
||||||
transform: { "^.+\\.vue$": "vue-jest" },
|
transform: { "^.+\\.vue$": "@vue/vue3-jest" },
|
||||||
moduleFileExtensions: ["js", "vue"],
|
moduleFileExtensions: ["js", "vue"],
|
||||||
modulePathIgnorePatterns: ["vin-lookup"],
|
modulePathIgnorePatterns: ["vin-lookup"],
|
||||||
collectCoverageFrom: [
|
collectCoverageFrom: [
|
||||||
|
|
|
||||||
22004
package-lock.json
generated
22004
package-lock.json
generated
File diff suppressed because it is too large
Load diff
18
package.json
18
package.json
|
|
@ -23,7 +23,7 @@
|
||||||
"jquery-ui": "^1.14.0",
|
"jquery-ui": "^1.14.0",
|
||||||
"maska": "^1.5.2",
|
"maska": "^1.5.2",
|
||||||
"vee-validate": "^4.13.2",
|
"vee-validate": "^4.13.2",
|
||||||
"vue": "^3.0.0",
|
"vue": "^3.4.38",
|
||||||
"vue-plugin-load-script": "^2.1.1",
|
"vue-plugin-load-script": "^2.1.1",
|
||||||
"vue-router": "^4.4.3",
|
"vue-router": "^4.4.3",
|
||||||
"vuex": "^4.1.0",
|
"vuex": "^4.1.0",
|
||||||
|
|
@ -31,22 +31,22 @@
|
||||||
"yup": "^0.32.11"
|
"yup": "^0.32.11"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-babel": "~4.5.0",
|
"@vue/cli-plugin-babel": "~5.0.8",
|
||||||
"@vue/cli-plugin-eslint": "~4.5.0",
|
"@vue/cli-plugin-eslint": "~5.0.8",
|
||||||
"@vue/cli-plugin-unit-jest": "~4.5.0",
|
"@vue/cli-plugin-unit-jest": "~5.0.8",
|
||||||
"@vue/cli-service": "~4.5.0",
|
"@vue/cli-service": "~5.0.8",
|
||||||
"@vue/compiler-sfc": "^3.0.0",
|
"@vue/compiler-sfc": "^3.4.38",
|
||||||
"@vue/eslint-config-prettier": "^6.0.0",
|
"@vue/eslint-config-prettier": "^6.0.0",
|
||||||
"@vue/test-utils": "^2.4.6",
|
"@vue/test-utils": "^2.4.6",
|
||||||
|
"@vue/vue3-jest": "^27.0.0",
|
||||||
"babel-eslint": "^10.1.0",
|
"babel-eslint": "^10.1.0",
|
||||||
"eslint": "^6.8.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-plugin-prettier": "^3.4.1",
|
"eslint-plugin-prettier": "^3.4.1",
|
||||||
"eslint-plugin-vue": "^7.20.0",
|
"eslint-plugin-vue": "^7.20.0",
|
||||||
"prettier": "^2.8.8",
|
"prettier": "^2.8.8",
|
||||||
"sass": "^1.77.8",
|
"sass": "^1.77.8",
|
||||||
"sass-loader": "^8.0.2",
|
"sass-loader": "^8.0.2",
|
||||||
"typescript": "~3.9.3",
|
"typescript": "^4.8.4"
|
||||||
"vue-jest": "^5.0.0-0"
|
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"root": true,
|
"root": true,
|
||||||
|
|
|
||||||
|
|
@ -1148,7 +1148,6 @@ function setupMocks(mountOptionsMockData = {}) {
|
||||||
Object.assign(defaultMountOptions, mountOptionsMockData)
|
Object.assign(defaultMountOptions, mountOptionsMockData)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
const allMountOptions = Object.assign(defaultMountOptions, baseMountOptions);
|
const allMountOptions = Object.assign(defaultMountOptions, baseMountOptions);
|
||||||
// Add in group name to avoid vee-validate failures
|
// Add in group name to avoid vee-validate failures
|
||||||
if (!allMountOptions.propsData.groupName) {
|
if (!allMountOptions.propsData.groupName) {
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@ describe("service-package-radio.vue", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const mockProps = {
|
const mockProps = {
|
||||||
groupName: 'group-name',
|
groupName: "group-name",
|
||||||
buttonLabel: "buttonLabel test copy",
|
buttonLabel: "buttonLabel test copy",
|
||||||
buttonLabelAuxillaryCopy: "buttonLabelAuxillaryCopy test copy",
|
buttonLabelAuxillaryCopy: "buttonLabelAuxillaryCopy test copy",
|
||||||
buttonLabelSubCopy: "buttonLabelSubCopy test copy",
|
buttonLabelSubCopy: "buttonLabelSubCopy test copy",
|
||||||
|
|
|
||||||
|
|
@ -396,7 +396,7 @@ describe("service-zip.vue", () => {
|
||||||
|
|
||||||
wrapper.vm.displayInvalidZipAlert = true;
|
wrapper.vm.displayInvalidZipAlert = true;
|
||||||
wrapper.vm.displayNonServiceableZipAlert = true;
|
wrapper.vm.displayNonServiceableZipAlert = true;
|
||||||
|
|
||||||
wrapper.vm.navigateForwardWithSingleCarMatch = jest.fn();
|
wrapper.vm.navigateForwardWithSingleCarMatch = jest.fn();
|
||||||
jest.spyOn(wrapper.vm, "navigateForwardWithSingleCarMatch").mockImplementation();
|
jest.spyOn(wrapper.vm, "navigateForwardWithSingleCarMatch").mockImplementation();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,13 +43,15 @@ describe("checkbox.vue", () => {
|
||||||
|
|
||||||
it("Should have correct screenreader-only text", async () => {
|
it("Should have correct screenreader-only text", async () => {
|
||||||
// Act
|
// Act
|
||||||
let { wrapper } = setupMocks({mountOptionsMockData: {
|
let { wrapper } = setupMocks({
|
||||||
propsData: {
|
mountOptionsMockData: {
|
||||||
groupName: "checkbox-button-test",
|
propsData: {
|
||||||
buttonLabel: "label text",
|
groupName: "checkbox-button-test",
|
||||||
value: "test value",
|
buttonLabel: "label text",
|
||||||
|
value: "test value",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},});
|
});
|
||||||
|
|
||||||
// Arrange
|
// Arrange
|
||||||
await wrapper.setProps({
|
await wrapper.setProps({
|
||||||
|
|
|
||||||
|
|
@ -297,7 +297,7 @@ describe("list-button.vue", () => {
|
||||||
function setupMocks({ mockData }) {
|
function setupMocks({ mockData }) {
|
||||||
// Add in group name to avoid vee-validate failures
|
// Add in group name to avoid vee-validate failures
|
||||||
if (!mockData.propsData) {
|
if (!mockData.propsData) {
|
||||||
mockData.propsData = {groupName : "group-name"};
|
mockData.propsData = { groupName: "group-name" };
|
||||||
} else if (!mockData.propsData.groupName) {
|
} else if (!mockData.propsData.groupName) {
|
||||||
mockData.propsData.groupName = "group-name";
|
mockData.propsData.groupName = "group-name";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ describe("radio.vue", () => {
|
||||||
function setupMocks({ mountOptionsMockData = {} }) {
|
function setupMocks({ mountOptionsMockData = {} }) {
|
||||||
// Add in group name to avoid vee-validate failures
|
// Add in group name to avoid vee-validate failures
|
||||||
if (!mountOptionsMockData.propsData) {
|
if (!mountOptionsMockData.propsData) {
|
||||||
mountOptionsMockData.propsData = {groupName : "group-name"};
|
mountOptionsMockData.propsData = { groupName: "group-name" };
|
||||||
} else if (!mountOptionsMockData.propsData.groupName) {
|
} else if (!mountOptionsMockData.propsData.groupName) {
|
||||||
mountOptionsMockData.propsData.groupName = "group-name";
|
mountOptionsMockData.propsData.groupName = "group-name";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue