diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 36cb08c7ec..e8b9a09d04 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -44,7 +44,7 @@ jobs: - name: Lint run: pnpm lint - name: Test - run: pnpm test:coverage + run: pnpm test:jest && pnpm test:coverage - name: Upload to codecov.io uses: codecov/codecov-action@v2 with: diff --git a/package.json b/package.json index 16fe2732f1..ff7689bae2 100644 --- a/package.json +++ b/package.json @@ -144,5 +144,10 @@ "vue-jest": "^5.0.0-alpha.10", "vue-router": "^4.0.12", "vue-tsc": "^0.31.4" + }, + "pnpm": { + "overrides": { + "jsdom": "16.4.0" + } } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b7ca447b40..7cf7980c6a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,5 +1,8 @@ lockfileVersion: 5.3 +overrides: + jsdom: 16.4.0 + importers: .: @@ -3942,7 +3945,7 @@ packages: /axios/0.26.0: resolution: {integrity: sha512-lKoGLMYtHvFrPVt3r+RBMp9nh34N0M8zEfCWqdWZx6phynIEhQqAdydpyBAAG211zlhX9Rgu08cOamy6XjE5Og==} dependencies: - follow-redirects: 1.14.9 + follow-redirects: 1.14.9_debug@4.3.3 transitivePeerDependencies: - debug dev: false @@ -5758,13 +5761,13 @@ packages: engines: {node: '>=10'} dev: true - /escodegen/2.0.0: - resolution: {integrity: sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==} - engines: {node: '>=6.0'} + /escodegen/1.14.3: + resolution: {integrity: sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==} + engines: {node: '>=4.0'} hasBin: true dependencies: esprima: 4.0.1 - estraverse: 5.3.0 + estraverse: 4.3.0 esutils: 2.0.3 optionator: 0.8.3 optionalDependencies: @@ -6388,16 +6391,6 @@ packages: readable-stream: 2.3.7 dev: true - /follow-redirects/1.14.9: - resolution: {integrity: sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==} - engines: {node: '>=4.0'} - peerDependencies: - debug: '*' - peerDependenciesMeta: - debug: - optional: true - dev: false - /follow-redirects/1.14.9_debug@4.3.3: resolution: {integrity: sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==} engines: {node: '>=4.0'} @@ -6408,7 +6401,6 @@ packages: optional: true dependencies: debug: 4.3.3 - dev: true /for-in/1.0.2: resolution: {integrity: sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=} @@ -6443,15 +6435,6 @@ packages: mime-types: 2.1.34 dev: true - /form-data/3.0.1: - resolution: {integrity: sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==} - engines: {node: '>= 6'} - dependencies: - asynckit: 0.4.0 - combined-stream: 1.0.8 - mime-types: 2.1.34 - dev: true - /fraction.js/4.1.3: resolution: {integrity: sha512-pUHWWt6vHzZZiQJcM6S/0PXfS+g6FM4BF5rj9wZyreivhQPdsh5PpE25VtSNxq80wHS5RfY51Ii+8Z0Zl/pmzg==} dev: true @@ -7229,6 +7212,11 @@ packages: engines: {node: '>=0.10.0'} dev: true + /ip-regex/2.1.0: + resolution: {integrity: sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk=} + engines: {node: '>=4'} + dev: true + /ip/1.1.5: resolution: {integrity: sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=} dev: true @@ -7813,11 +7801,10 @@ packages: '@types/node': 17.0.18 jest-mock: 26.6.2 jest-util: 26.6.2 - jsdom: 16.7.0 + jsdom: 16.4.0 transitivePeerDependencies: - bufferutil - canvas - - supports-color - utf-8-validate dev: true @@ -8171,8 +8158,8 @@ packages: resolution: {integrity: sha1-peZUwuWi3rXyAdls77yoDA7y9RM=} dev: true - /jsdom/16.7.0: - resolution: {integrity: sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==} + /jsdom/16.4.0: + resolution: {integrity: sha512-lYMm3wYdgPhrl7pDcRmvzPhhrGVBeVhPIqeHjzeiHN3DFmD1RBpbExbi8vU7BJdH8VAZYovR8DMt0PNNDM7k8w==} engines: {node: '>=10'} peerDependencies: canvas: ^2.5.0 @@ -8181,24 +8168,23 @@ packages: optional: true dependencies: abab: 2.0.5 - acorn: 8.7.0 + acorn: 7.4.1 acorn-globals: 6.0.0 cssom: 0.4.4 cssstyle: 2.3.0 data-urls: 2.0.0 decimal.js: 10.3.1 domexception: 2.0.1 - escodegen: 2.0.0 - form-data: 3.0.1 + escodegen: 1.14.3 html-encoding-sniffer: 2.0.1 - http-proxy-agent: 4.0.1 - https-proxy-agent: 5.0.0 is-potential-custom-element-name: 1.0.1 nwsapi: 2.2.0 - parse5: 6.0.1 + parse5: 5.1.1 + request: 2.88.2 + request-promise-native: 1.0.9_request@2.88.2 saxes: 5.0.1 symbol-tree: 3.2.4 - tough-cookie: 4.0.0 + tough-cookie: 3.0.1 w3c-hr-time: 1.0.2 w3c-xmlserializer: 2.0.0 webidl-conversions: 6.1.0 @@ -8209,7 +8195,6 @@ packages: xml-name-validator: 3.0.0 transitivePeerDependencies: - bufferutil - - supports-color - utf-8-validate dev: true @@ -9588,8 +9573,8 @@ packages: engines: {node: '>=0.10.0'} dev: true - /parse5/6.0.1: - resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==} + /parse5/5.1.1: + resolution: {integrity: sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==} dev: true /pascalcase/0.1.1: @@ -10262,6 +10247,29 @@ packages: throttleit: 1.0.0 dev: true + /request-promise-core/1.1.4_request@2.88.2: + resolution: {integrity: sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw==} + engines: {node: '>=0.10.0'} + peerDependencies: + request: ^2.34 + dependencies: + lodash: 4.17.21 + request: 2.88.2 + dev: true + + /request-promise-native/1.0.9_request@2.88.2: + resolution: {integrity: sha512-wcW+sIUiWnKgNY0dqCpOZkUbF/I+YPi+f09JZIDa39Ec+q82CpSYniDp+ISgTTbKmnpJWASeJBPZmoxH84wt3g==} + engines: {node: '>=0.12.0'} + deprecated: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 + peerDependencies: + request: ^2.34 + dependencies: + request: 2.88.2 + request-promise-core: 1.1.4_request@2.88.2 + stealthy-require: 1.1.1 + tough-cookie: 2.5.0 + dev: true + /request/2.88.2: resolution: {integrity: sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==} engines: {node: '>= 6'} @@ -10902,6 +10910,11 @@ packages: object-copy: 0.1.0 dev: true + /stealthy-require/1.1.1: + resolution: {integrity: sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=} + engines: {node: '>=0.10.0'} + dev: true + /stream-exhaust/1.0.2: resolution: {integrity: sha512-b/qaq/GlBK5xaq1yrK9/zFcyRSTNxmcZwFLGSTG0mXgZl/4Z6GgiyYOXOvY7N3eEvFRAG1bkDRz5EPGSvPYQlw==} dev: true @@ -11354,13 +11367,13 @@ packages: punycode: 2.1.1 dev: true - /tough-cookie/4.0.0: - resolution: {integrity: sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg==} + /tough-cookie/3.0.1: + resolution: {integrity: sha512-yQyJ0u4pZsv9D4clxO69OEjLWYw+jbgspjTue4lTQZLfV0c5l1VmK2y1JK8E9ahdpltPOaAThPcp5nKPUgSnsg==} engines: {node: '>=6'} dependencies: + ip-regex: 2.1.0 psl: 1.8.0 punycode: 2.1.1 - universalify: 0.1.2 dev: true /tr46/0.0.3: