mirror of
https://github.com/bitwarden/jslib
synced 2026-01-02 16:43:39 +00:00
Migrate components to use jest (#793)
* Migrate components to use jest (tests fail) * Fix failing tests * Fix linting errors
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
"start": "ng serve",
|
||||
"build": "ng build",
|
||||
"watch": "ng build --watch --configuration development",
|
||||
"test": "ng test",
|
||||
"test": "jest",
|
||||
"test:watch": "jest --watch",
|
||||
"docs:json": "compodoc -p ./tsconfig.json -e json -d .",
|
||||
"storybook": "npm run docs:json && start-storybook -p 6006",
|
||||
"build-storybook": "npm run docs:json && build-storybook",
|
||||
@@ -24,8 +25,8 @@
|
||||
"@angular/platform-browser-dynamic": "^12.2.13",
|
||||
"@bitwarden/jslib-angular": "file:../angular",
|
||||
"bootstrap": "4.6.0",
|
||||
"tslib": "^2.3.0",
|
||||
"rxjs": "^7.4.0"
|
||||
"rxjs": "^7.4.0",
|
||||
"tslib": "^2.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "^12.2.13",
|
||||
@@ -41,18 +42,12 @@
|
||||
"@storybook/angular": "^6.4.18",
|
||||
"@storybook/builder-webpack5": "^6.4.18",
|
||||
"@storybook/manager-webpack5": "^6.4.18",
|
||||
"@types/jasmine": "~3.10.0",
|
||||
"@types/node": "^12.11.1",
|
||||
"@types/node": "^16.11.33",
|
||||
"@webcomponents/custom-elements": "^1.5.0",
|
||||
"autoprefixer": "^10.4.2",
|
||||
"babel-loader": "^8.2.3",
|
||||
"chromatic": "^6.5.2",
|
||||
"jasmine-core": "~3.10.0",
|
||||
"karma": "~6.3.0",
|
||||
"karma-chrome-launcher": "~3.1.0",
|
||||
"karma-coverage": "~2.1.0",
|
||||
"karma-jasmine": "~4.0.0",
|
||||
"karma-jasmine-html-reporter": "~1.7.0",
|
||||
"jest-preset-angular": "^11.1.2",
|
||||
"postcss": "^8.4.6",
|
||||
"storybook-addon-designs": "^6.2.1",
|
||||
"tailwindcss": "^3.0.18",
|
||||
|
||||
Reference in New Issue
Block a user