Skip to content

Commit f27e111

Browse files
committed
chore(*): added test commands for all packages
1 parent ea06211 commit f27e111

File tree

5 files changed

+36
-1
lines changed

5 files changed

+36
-1
lines changed

package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@
99
"build:react": "pnpm --filter=@firebase-ui/react run build",
1010
"build:angular": "pnpm --filter=@firebase-ui/angular run build",
1111

12+
"test": "pnpm run test:core && pnpm run test:react && pnpm run test:angular && pnpm run test:translations && pnpm run test:styles",
13+
"test:core": "pnpm --filter=@firebase-ui/core run test",
14+
"test:react": "pnpm --filter=@firebase-ui/react run test",
15+
"test:angular": "pnpm --filter=@firebase-ui/angular run test",
16+
"test:translations": "pnpm --filter=@firebase-ui/translations run test",
17+
"test:styles": "pnpm --filter=@firebase-ui/styles run test",
18+
"test:watch": "pnpm run test:core:watch & pnpm run test:react:watch & pnpm run test:angular:watch",
19+
"test:core:watch": "pnpm --filter=@firebase-ui/core run test:unit:watch",
20+
"test:react:watch": "pnpm --filter=@firebase-ui/react run test:unit:watch",
21+
"test:angular:watch": "pnpm --filter=@firebase-ui/angular run test:watch",
22+
1223
"publish:tags:core": "pnpm --filter=@firebase-ui/core run publish:tags",
1324
"publish:tags:translations": "pnpm --filter=@firebase-ui/translations run publish:tags",
1425
"publish:tags:react": "pnpm --filter=@firebase-ui/react run publish:tags",

packages/firebaseui-angular/package.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
},
1616
"scripts": {
1717
"build": "ng-packagr -p ng-package.json",
18+
"test": "ng test --watch=false --browsers=ChromeHeadless --project=firebase-ui-angular",
19+
"test:watch": "ng test --watch=true --project=firebase-ui-angular",
20+
"test:ci": "ng test --watch=false --browsers=ChromeHeadless --code-coverage --project=firebase-ui-angular",
1821
"publish:tags": "sh -c 'TAG=\"${npm_package_name}@${npm_package_version}\"; git tag --list \"$TAG\" | grep . || git tag \"$TAG\"; git push origin \"$TAG\"'",
1922
"release": "pnpm pack --pack-destination ../../releases/"
2023
},
@@ -32,10 +35,26 @@
3235
},
3336
"sideEffects": false,
3437
"devDependencies": {
38+
"@angular-devkit/build-angular": "^19.1.0",
39+
"@angular/cli": "^19.1.0",
40+
"@angular/compiler": "^19.1.0",
3541
"@angular/fire": "^19.1.0",
3642
"@angular/forms": "^19.2.11",
3743
"@angular/router": "^19.2.11",
44+
"@angular/platform-browser": "^19.1.0",
45+
"@angular/platform-browser-dynamic": "^19.1.0",
46+
"firebase": "^11.0.0",
47+
"jasmine-core": "^5.1.0",
48+
"@types/jasmine": "^5.1.0",
49+
"karma": "^6.4.0",
50+
"karma-chrome-launcher": "^3.2.0",
51+
"karma-coverage": "^2.2.0",
52+
"karma-jasmine": "^5.1.0",
53+
"karma-jasmine-html-reporter": "^2.1.0",
3854
"ng-packagr": "^19.1.0",
39-
"rxjs": "^7.8.2"
55+
"rxjs": "^7.8.2",
56+
"typescript": "~5.6.2",
57+
"zone.js": "^0.15.0",
58+
"@types/node": "^22.13.8"
4059
}
4160
}

packages/firebaseui-react/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"lint": "tsc --noEmit",
2424
"format": "prettier --write \"src/**/*.ts\"",
2525
"clean": "rimraf dist",
26+
"test": "vitest run",
2627
"test:unit": "vitest run tests/unit",
2728
"test:unit:watch": "vitest tests/unit",
2829
"test:integration": "vitest run tests/integration",

packages/firebaseui-styles/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"prepare": "pnpm run build",
1111
"build": "npx -y @tailwindcss/cli -i ./src.css -o ./dist.css --minify",
1212
"build:local": "pnpm run build && pnpm pack",
13+
"test": "echo \"No tests specified\" && exit 0",
14+
"test:watch": "echo \"No tests specified\" && exit 0",
1315
"publish:tags": "sh -c 'TAG=\"${npm_package_name}@${npm_package_version}\"; git tag --list \"$TAG\" | grep . || git tag \"$TAG\"; git push origin \"$TAG\"'",
1416
"release": "pnpm run build && pnpm pack --pack-destination ../../releases/"
1517
},

packages/firebaseui-translations/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
"lint": "tsc --noEmit",
2525
"format": "prettier --write \"src/**/*.ts\"",
2626
"clean": "rimraf dist",
27+
"test": "echo \"No tests specified\" && exit 0",
28+
"test:watch": "echo \"No tests specified\" && exit 0",
2729
"publish:tags": "sh -c 'TAG=\"${npm_package_name}@${npm_package_version}\"; git tag --list \"$TAG\" | grep . || git tag \"$TAG\"; git push origin \"$TAG\"'",
2830
"release": "npm run build && pnpm pack --pack-destination ../../releases/"
2931
},

0 commit comments

Comments
 (0)