diff --git a/Jenkinsfile b/Jenkinsfile index d9fb61d39..b900499a1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,6 +31,8 @@ def pipeline = new org.js.AppPipeline(steps: this, targetNameSpace: "sora2-${env.CHANGE_ID}-web", targetSecretName: "sora2-${env.CHANGE_ID}-polkaswap-exchange-pr-polkaswap-exchange-web-eso-base", downstreamJob: 'polkaswap/e2e-tests/hash_test', - noIndex: true + noIndex: true, + sonarSrcPath: 'src', + sonarTestsPath: 'tests' ) pipeline.runPipeline() diff --git a/jest.config.js b/jest.config.js index bb67147f1..4739e6d92 100644 --- a/jest.config.js +++ b/jest.config.js @@ -6,4 +6,8 @@ module.exports = { '^.+\\.js$': 'babel-jest', }, transformIgnorePatterns: ['node_modules/?!(@polkadot/util)'], + collectCoverage: true, + collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx,vue}'], + coverageReporters: ['lcov'], + coveragePathIgnorePatterns: ['node_modules/', 'coverage/'], }; diff --git a/package.json b/package.json index 0acd6d248..1e13f61b5 100644 --- a/package.json +++ b/package.json @@ -19,11 +19,11 @@ "test:unit": "vue-cli-service test:unit --testPathIgnorePatterns Translation.spec.ts", "test:translation": "vue-cli-service test:unit -- Translation.spec.ts", "test:e2e": "vue-cli-service test:e2e", - "test:all": "yarn test:unit" + "test:all": "yarn test:unit --coverage" }, "dependencies": { "@metamask/detect-provider": "^2.0.0", - "@soramitsu/soraneo-wallet-web": "1.17.17", + "@soramitsu/soraneo-wallet-web": "1.17.18", "@walletconnect/web3-provider": "^1.8.0", "base-64": "^1.0.0", "core-js": "^3.26.0", diff --git a/src/App.vue b/src/App.vue index 6447bf2a8..516a87633 100644 --- a/src/App.vue +++ b/src/App.vue @@ -43,10 +43,10 @@