From a2668c22f0d18386fc988f27299172145d9fa15d Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 3 Jan 2023 01:57:39 -0300 Subject: refactor better QA removed axios, use fetch removed jest, added mocha and chai moved the default request handler to runtime dependency (so it can be replaced for testing) refactored ALL the test to the standard web-utils all hooks now use ONE request handler moved the tests from test folder to src --- packages/merchant-backoffice-ui/package.json | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'packages/merchant-backoffice-ui/package.json') diff --git a/packages/merchant-backoffice-ui/package.json b/packages/merchant-backoffice-ui/package.json index beacd42f6..cffe73e3f 100644 --- a/packages/merchant-backoffice-ui/package.json +++ b/packages/merchant-backoffice-ui/package.json @@ -35,7 +35,6 @@ "dependencies": { "@gnu-taler/taler-util": "workspace:*", "@gnu-taler/web-util": "workspace:*", - "axios": "^0.21.1", "date-fns": "2.29.3", "history": "4.10.1", "jed": "1.1.1", @@ -48,10 +47,8 @@ "devDependencies": { "@creativebulma/bulma-tooltip": "^1.2.0", "@gnu-taler/pogen": "^0.0.5", - "@testing-library/preact": "^2.0.1", - "@testing-library/preact-hooks": "^1.1.0", + "@types/chai": "^4.3.0", "@types/history": "^4.7.8", - "@types/jest": "^26.0.23", "@types/mocha": "^8.2.3", "@types/node": "^18.11.17", "@typescript-eslint/eslint-plugin": "^4.22.0", @@ -64,6 +61,7 @@ "bulma-switch-control": "^1.1.1", "bulma-timeline": "^3.0.4", "bulma-upload-control": "^1.2.0", + "chai": "^4.3.6", "dotenv": "^8.2.0", "eslint": "^7.25.0", "eslint-config-preact": "^1.1.4", @@ -72,13 +70,12 @@ "html-webpack-inline-source-plugin": "0.0.10", "html-webpack-skip-assets-plugin": "^1.0.1", "inline-chunk-html-plugin": "^1.1.1", - "jest": "^26.6.3", - "jest-preset-preact": "^4.0.2", "mocha": "^9.2.0", "preact-render-to-string": "^5.2.6", "rimraf": "^3.0.2", "sass": "1.56.1", + "source-map-support": "^0.5.21", "typedoc": "^0.20.36", "typescript": "4.8.4" } -} \ No newline at end of file +} -- cgit v1.2.3