diff options
author | Sebastian <sebasjm@gmail.com> | 2022-01-04 17:06:17 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-01-04 17:06:24 -0300 |
commit | 9f8139e09b21ec12f9b9ba4926ea80557698c559 (patch) | |
tree | dba5aacf50e89176bee35cfdd1002cc61c3f52e5 /packages/taler-wallet-webextension/package.json | |
parent | 2e71117f59e0ae6106930e705ae6a54a9839281b (diff) | |
download | wallet-core-9f8139e09b21ec12f9b9ba4926ea80557698c559.tar.xz |
replace jest with mocha
Diffstat (limited to 'packages/taler-wallet-webextension/package.json')
-rw-r--r-- | packages/taler-wallet-webextension/package.json | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/packages/taler-wallet-webextension/package.json b/packages/taler-wallet-webextension/package.json index 41d65e88e..179cd94db 100644 --- a/packages/taler-wallet-webextension/package.json +++ b/packages/taler-wallet-webextension/package.json @@ -9,8 +9,9 @@ "private": false, "scripts": { "clean": "rimraf dist lib tsconfig.tsbuildinfo", - "test": "jest ./tests", - "compile": "tsc && rollup -c", + "test": "mocha --enable-source-maps 'dist/**/*.test.js'", + "test:coverage": "nyc pnpm test", + "compile": "rollup -c -m", "build-storybook": "build-storybook", "storybook": "start-storybook -s . -p 6006", "pretty": "prettier --write src", @@ -41,22 +42,21 @@ "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-node-resolve": "^11.1.0", "@rollup/plugin-replace": "^2.3.4", + "@rollup/plugin-typescript": "^8.3.0", "@storybook/addon-a11y": "^6.2.9", "@storybook/addon-essentials": "^6.2.9", - "@storybook/preact": "^6.2.9", + "@storybook/preact": "6.4.9", "@testing-library/preact": "^2.0.1", + "@testing-library/preact-hooks": "^1.1.0", "@types/chrome": "^0.0.128", - "@types/enzyme": "^3.10.10", "@types/history": "^4.7.8", - "@types/jest": "^26.0.23", + "@types/mocha": "^9.0.0", "@types/node": "^14.14.22", "ava": "3.15.0", "babel-loader": "^8.2.2", "babel-plugin-transform-react-jsx": "^6.24.1", - "enzyme": "^3.11.0", - "enzyme-adapter-preact-pure": "^3.1.0", - "jest": "^26.6.3", - "jest-preset-preact": "^4.0.2", + "mocha": "^9.1.3", + "nyc": "^15.1.0", "preact-cli": "^3.0.5", "preact-render-to-string": "^5.1.19", "rimraf": "^3.0.2", @@ -68,17 +68,10 @@ "storybook-dark-mode": "^1.0.8", "typescript": "^4.1.3" }, - "jest": { - "preset": "jest-preset-preact", - "setupFiles": [ - "<rootDir>/tests/__mocks__/setupTests.ts" + "nyc": { + "include": [ + "**" ], - "moduleNameMapper": { - "\\.(css|less)$": "identity-obj-proxy", - "@linaria/react": "<rootDir>/tests/__mocks__/linaria.ts" - }, - "transform": { - "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|po)$": "<rootDir>/tests/__mocks__/fileTransformer.js" - } + "exclude": [] } -}
\ No newline at end of file +} |