Skip to content

Commit e2b2683

Browse files
committed
Removed tests and storybook
1 parent c531317 commit e2b2683

File tree

256 files changed

+402
-24430
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+402
-24430
lines changed

.github/pull_request_template.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ Open a thread on #daedalus-qa on Slack, mention `@daedalusqa` and `@daedalusteam
5050
- [ ] There are no missing translations (running `yarn manage:translations` produces no changes)
5151
- [ ] Text changes are proofread and approved (Jane Wild / Amy Reeve)
5252
- [ ] Japanese text changes are proofread and approved (Junko Oda)
53-
- [ ] Storybook works and no stories are broken (`yarn storybook`)
5453
- [ ] In case of dependency changes `yarn.lock` file is updated
5554

5655
### Code Quality

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# But not the following folders
55
!source/
66
!features/
7-
!storybook/
87
!hardware-wallet-tests/
98
!tests/
109

netlify.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

nix/internal/common.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ rec {
139139
# };
140140

141141
nodejs = let
142-
base = pkgs.nodejs-18_x;
142+
base = pkgs.nodejs;
143143
in if !(pkgs.lib.hasInfix "-darwin" targetSystem) then base else base.overrideAttrs (drv: {
144144
# XXX: we don’t want `bypass-xcodebuild.diff` or `bypass-darwin-xcrun-node16.patch`, rather we supply
145145
# the pure `xcbuild` – without that, `blake2` doesn’t build,

package.json

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,15 @@
1414
"build:renderer": "yarn webpack -c source/renderer/webpack.config.js --progress",
1515
"build:cleanup": "rimraf ./dist",
1616
"build:electron": "./scripts/rebuild-native-modules.sh",
17-
"check:all": "yarn prettier:check && yarn lint && yarn compile && yarn stylelint && yarn i18n:manage && yarn storybook:build",
17+
"check:all": "yarn prettier:check && yarn lint && yarn compile && yarn stylelint && yarn i18n:manage",
1818
"start": "yarn electron ./",
1919
"start:dev": "nodemon --watch 'dist/main' --exec 'NODE_ENV=development yarn start'",
20-
"test": "NODE_ENV=test yarn build && yarn test:unit && yarn test:e2e:fail-fast",
21-
"test:jest": "jest",
22-
"test:generate:report": "yarn node-swc tests/reporter.ts",
23-
"test:unit": "yarn cucumber:run --require 'tests/**/unit/**/*.ts' --tags '@unit and not @skip and not @wip'",
24-
"test:unit:rerun": "yarn cucumber:rerun --require 'tests/**/unit/**/*.ts' --tags '@unit and not @skip and not @wip'",
25-
"test:unit:watch": "nodemon --watch source --watch tests --exec \"yarn test:unit --tags '@unit and @watch'\"",
26-
"test:unit:unbound": "yarn cucumber:run --require 'tests/**/unit/**/*.ts' --tags '@unbound and not @skip and not @wip'",
27-
"test:e2e": "yarn cucumber:run --require 'tests/setup-e2e.ts' --require 'tests/**/e2e/**/*.ts' --tags '@e2e and not @skip and not @wip'",
28-
"test:e2e:fail-fast": "yarn cucumber:fail-fast --require 'tests/setup-e2e.ts' --require 'tests/**/e2e/**/*.ts' --tags '@e2e and not @skip and not @wip'",
29-
"test:e2e:rerun": "yarn cucumber:rerun --require 'tests/setup-e2e.ts' --require 'tests/**/e2e/**/*.ts' --tags '@e2e and not @skip and not @wip'",
30-
"test:e2e:rerun:fail-fast": "yarn cucumber:rerun --require 'tests/setup-e2e.ts' --require 'tests/**/e2e/**/*.ts' --tags '@e2e and not @skip and not @wip'",
31-
"test:e2e:watch": "gulp test:e2e:watch",
32-
"test:e2e:watch:once": "KEEP_APP_AFTER_TESTS=true yarn test:e2e --tags '@e2e and @watch'",
33-
"test:hardware-wallets": "ts-node hardware-wallet-tests/index.ts",
34-
"cucumber": "cross-env NODE_ENV=test cucumber-js --require-module '@swc-node/register' --require 'tests/setup-common.ts' -f json:tests-report/report-data.json -f summary:tests-report/summary.log -f node_modules/cucumber-pretty:tests-report/results.log --format-options '{\"snippetInterface\": \"async-await\"}' -f node_modules/cucumber-pretty --format-options '{\"snippetInterface\": \"async-await\"}' -f rerun:tests/@rerun.txt",
35-
"cucumber:run": "yarn cucumber tests",
36-
"cucumber:fail-fast": "yarn cucumber tests --fail-fast",
37-
"cucumber:rerun": "yarn cucumber tests-report/@rerun.txt",
38-
"cucumber:rerun:fail-fast": "yarn cucumber tests-report/@rerun.txt --fail-fast",
3920
"node-swc": "node -r @swc-node/register",
4021
"debug": "gulp debug",
4122
"package": "cross-env NODE_ENV=production yarn build && cross-env NODE_ENV=production yarn node-swc scripts/package.js",
4223
"package:all": "yarn package --all",
43-
"lint": "eslint --format=node_modules/eslint-formatter-pretty source storybook utils --ext .ts,.tsx",
44-
"lint:fix": "eslint --fix --fix-type problem --ext '.ts,.tsx' source storybook utils",
24+
"lint": "eslint --format=node_modules/eslint-formatter-pretty source utils --ext .ts,.tsx",
25+
"lint:fix": "eslint --fix --fix-type problem --ext '.ts,.tsx' source utils",
4526
"compile": "tsc --noEmit",
4627
"precompile": "yarn typedef:sass",
4728
"prettier": "./node_modules/.bin/prettier \"**/*.*\"",
@@ -52,8 +33,6 @@
5233
"i18n:extract": "formatjs extract 'source/**/*.{ts,tsx}' --ignore='**/*.d.ts' --format='translations/formatter.js' --extract-source-location --out-file='translations/messages.json'",
5334
"i18n:check": "yarn node-swc ./translations/translation-runner.ts",
5435
"i18n:manage": "yarn i18n:extract && yarn i18n:check",
55-
"storybook": "start-storybook -p 6006 -c storybook --ci /",
56-
"storybook:build": "build-storybook -c storybook -o dist/storybook",
5736
"themes:check:createTheme": "gulp build:themes && yarn node-swc ./dist/scripts/check.js",
5837
"themes:update": "gulp build:themes && yarn node-swc ./dist/scripts/update.js && yarn prettier --loglevel warn --write source/renderer/app/themes/daedalus/*.ts",
5938
"themes:copy": "yarn node-swc source/renderer/app/themes/utils/copyTheme.ts && yarn prettier --loglevel warn --write source/renderer/app/themes/daedalus/*.ts",
@@ -76,19 +55,10 @@
7655
"electron": "./node_modules/.bin/electron"
7756
},
7857
"devDependencies": {
79-
"@dump247/storybook-state": "1.6.1",
8058
"@electron/rebuild": "3.2.13",
8159
"@faker-js/faker": "6.0.0",
8260
"@formatjs/cli": "4.8.3",
8361
"@pmmmwh/react-refresh-webpack-plugin": "0.5.3",
84-
"@storybook/addon-actions": "6.4.22",
85-
"@storybook/addon-knobs": "6.4.0",
86-
"@storybook/addon-links": "6.4.22",
87-
"@storybook/addons": "6.4.22",
88-
"@storybook/builder-webpack5": "6.4.22",
89-
"@storybook/core": "6.4.22",
90-
"@storybook/manager-webpack5": "6.4.22",
91-
"@storybook/react": "6.4.22",
9262
"@swc-node/register": "1.4.2",
9363
"@swc/core": "1.2.164",
9464
"@swc/jest": "0.2.21",
@@ -118,8 +88,6 @@
11888
"cross-env": "7.0.2",
11989
"crypto-browserify": "3.12.0",
12090
"css-loader": "6.2.0",
121-
"cucumber": "6.0.5",
122-
"cucumber-pretty": "6.0.0",
12391
"del": "6.0.0",
12492
"electron-connect": "0.6.3",
12593
"electron-devtools-installer": "3.2.0",
@@ -171,7 +139,6 @@
171139
"sinon": "9.2.2",
172140
"spawn-sync": "2.0.0",
173141
"spectron": "14.0.0",
174-
"storybook-addon-swc": "1.1.7",
175142
"stream-browserify": "3.0.0",
176143
"stream-http": "3.2.0",
177144
"style-loader": "3.2.1",
@@ -193,7 +160,8 @@
193160
"webpack-dev-server": "4.9.0",
194161
"ws": "7.3.1",
195162
"yamljs": "0.3.0",
196-
"yarn-lockfile": "1.1.1"
163+
"yarn-audit-fix": "^10.0.7",
164+
"yarn-audit-html": "^7.3.2"
197165
},
198166
"dependencies": {
199167
"@cardano-foundation/ledgerjs-hw-app-cardano": "6.0.0",
@@ -218,7 +186,6 @@
218186
"chroma-js": "2.1.0",
219187
"classnames": "2.2.6",
220188
"csv-stringify": "5.5.1",
221-
"cucumber-html-reporter": "5.2.0",
222189
"electron": "24.2.0",
223190
"electron-log-daedalus": "2.2.21",
224191
"electron-store": "8.0.1",

scripts/package.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,12 @@ const DEFAULT_OPTS = {
2727
asar: shouldUseAsar,
2828
ignore: [
2929
/^\/.buildkite($|\/)/,
30-
/^\/.storybook($|\/)/,
3130
/^\/flow($|\/)/,
3231
/^\/installers\/.*exe/,
3332
/^\/logs($|\/)/,
3433
/^\/node_modules($|\/)/,
3534
/^\/scripts($|\/)/,
3635
/^\/source($|\/)/,
37-
/^\/storybook($|\/)/,
3836
/^\/tests($|\/)/,
3937
/^\/tests-report($|\/)/,
4038
/^\/translations($|\/)/,

source/renderer/app/components/profile/analytics/Analytics.stories.tsx

Lines changed: 0 additions & 10 deletions
This file was deleted.

source/renderer/app/components/sidebar/wallets/SidebarWalletsMenu.spec.tsx

Lines changed: 0 additions & 99 deletions
This file was deleted.

source/renderer/app/components/wallet/tokens/wallet-token-picker/WalletTokenPicker.stories.tsx

Lines changed: 0 additions & 76 deletions
This file was deleted.

source/renderer/app/features/discreet-mode/ui/DiscreetValue.story.tsx

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)