From 870c8fd40776fb9a4a713754258e3b89ce3a4a41 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 8 Mar 2023 14:18:01 +0100 Subject: [PATCH] chore(tests): update deps Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- pnpm-lock.yaml | 14 ++++++++------ tests/.eslintrc.js | 4 ++-- .../2-vue-flow/customConnectionLine.cy.ts | 3 +++ tests/package.json | 5 +++-- 4 files changed, 16 insertions(+), 10 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 869cfad6..f1d962a0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -401,7 +401,8 @@ importers: '@vue-flow/core': workspace:* '@vue-flow/minimap': workspace:* cypress: ^12.7.0 - eslint-plugin-chai-friendly: ^0.7.2 + eslint-plugin-cypress: ^2.12.1 + typescript: ^4.9.5 vite: ^4.1.4 vue: ^3.2.25 dependencies: @@ -414,7 +415,8 @@ importers: '@tooling/tsconfig': link:../tooling/tsconfig '@vitejs/plugin-vue': 4.0.0_vite@4.1.4+vue@3.2.47 cypress: 12.7.0 - eslint-plugin-chai-friendly: 0.7.2_eslint@8.35.0 + eslint-plugin-cypress: 2.12.1_eslint@8.35.0 + typescript: 4.9.5 vite: 4.1.4 vue: 3.2.47 @@ -5489,13 +5491,13 @@ packages: - typescript dev: true - /eslint-plugin-chai-friendly/0.7.2_eslint@8.35.0: - resolution: {integrity: sha512-LOIfGx5sZZ5FwM1shr2GlYAWV9Omdi+1/3byuVagvQNoGUuU0iHhp7AfjA1uR+4dJ4Isfb4+FwBJgQajIw9iAg==} - engines: {node: '>=0.10.0'} + /eslint-plugin-cypress/2.12.1_eslint@8.35.0: + resolution: {integrity: sha512-c2W/uPADl5kospNDihgiLc7n87t5XhUbFDoTl6CfVkmG+kDAb5Ux10V9PoLPu9N+r7znpc+iQlcmAqT1A/89HA==} peerDependencies: - eslint: '>=3.0.0' + eslint: '>= 3.2.1' dependencies: eslint: 8.35.0 + globals: 11.12.0 dev: true /eslint-plugin-es/4.1.0_eslint@8.35.0: diff --git a/tests/.eslintrc.js b/tests/.eslintrc.js index 574fdfd3..15d66c26 100644 --- a/tests/.eslintrc.js +++ b/tests/.eslintrc.js @@ -1,7 +1,7 @@ module.exports = { extends: ['@tooling/eslint-config'], - plugins: ['chai-friendly'], + plugins: ['cypress'], rules: { - 'chai-friendly/no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }], + 'no-unused-expressions': 'off', }, } diff --git a/tests/cypress/component/2-vue-flow/customConnectionLine.cy.ts b/tests/cypress/component/2-vue-flow/customConnectionLine.cy.ts index 5838f3a1..754aced2 100644 --- a/tests/cypress/component/2-vue-flow/customConnectionLine.cy.ts +++ b/tests/cypress/component/2-vue-flow/customConnectionLine.cy.ts @@ -63,7 +63,10 @@ describe('Check if custom connection lines are rendered', () => { .should('have.length', 1) .then(() => { expect(propTargetNode).to.not.be.null + expect(propTargetNode?.id).to.equal('2') + expect(propTargetHandle).to.not.be.null + expect(propTargetHandle?.id).to.equal('2__handle-top') sourceHandle.trigger('mouseup', { clientX: x + 5, diff --git a/tests/package.json b/tests/package.json index f60aa0ba..5f010dc3 100644 --- a/tests/package.json +++ b/tests/package.json @@ -17,8 +17,9 @@ "@tooling/tsconfig": "workspace:*", "@vitejs/plugin-vue": "^4.0.0", "cypress": "^12.7.0", + "eslint-plugin-cypress": "^2.12.1", + "typescript": "^4.9.5", "vite": "^4.1.4", - "vue": "^3.2.25", - "eslint-plugin-chai-friendly": "^0.7.2" + "vue": "^3.2.25" } }