Skip to content

Commit

Permalink
feat: add karma brower support (#114)
Browse files Browse the repository at this point in the history
* fix: add support for karma builder with browser builder

* chore: update version and schematics

* feat: fallback to webpack builder
  • Loading branch information
chihab authored Dec 15, 2024
1 parent c095a9e commit 52afdbe
Show file tree
Hide file tree
Showing 10 changed files with 315 additions and 23,313 deletions.
2 changes: 1 addition & 1 deletion examples/nx-workspace-old/apps/ng-app-cli/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
"test": {
"builder": "@ngx-env/builder:karma",
"options": {
"builderMode": "detect",
"builderMode": "application",
"polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
Expand Down
36 changes: 18 additions & 18 deletions examples/nx-workspace-old/apps/ng-app-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,40 +12,40 @@
"build:browser": "NODE_ENV=production ng run ng-app-cli:build-browser",
"pretest": "ng config projects.ng-app-cli.architect.test.options.ngxEnv.prefix 'NGX_'",
"pretest:jest": "ng config projects.ng-app-cli.architect.test.options.ngxEnv.prefix 'NGX_'",
"test": "echo NODE_ENV=test NGX_BRANCH=test ng test --watch=false",
"test": "NODE_ENV=test NGX_BRANCH=test ng test --watch=false",
"test:jest": "NODE_ENV=test node --experimental-vm-modules ./node_modules/jest/bin/jest.js --config ./jest.config.mjs",
"e2e": "playwright test",
"static": "serve dist/ng-app-cli/browser/fr -p 8081"
},
"private": true,
"dependencies": {
"@angular/animations": "^19.0.0",
"@angular/common": "^19.0.0",
"@angular/compiler": "^19.0.0",
"@angular/core": "^19.0.0",
"@angular/forms": "^19.0.0",
"@angular/localize": "^19.0.0",
"@angular/platform-browser": "^19.0.0",
"@angular/platform-browser-dynamic": "^19.0.0",
"@angular/platform-server": "^19.0.0",
"@angular/router": "^19.0.0",
"@angular/ssr": "^19.0.0",
"@angular/animations": "^19.0.4",
"@angular/common": "^19.0.4",
"@angular/compiler": "^19.0.4",
"@angular/core": "^19.0.4",
"@angular/forms": "^19.0.4",
"@angular/localize": "^19.0.4",
"@angular/platform-browser": "^19.0.4",
"@angular/platform-browser-dynamic": "^19.0.4",
"@angular/platform-server": "^19.0.4",
"@angular/router": "^19.0.4",
"@angular/ssr": "^19.0.4",
"express": "^4.21.0",
"rxjs": "~7.8.1",
"tslib": "^2.7.0",
"zone.js": "~0.15.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^19.0.0",
"@angular/build": "^19.0.0",
"@angular/cli": "^19.0.0",
"@angular/router": "^19.0.0",
"@angular/compiler-cli": "^19.0.0",
"@angular-devkit/build-angular": "^19.0.4",
"@angular/build": "^19.0.4",
"@angular/cli": "^19.0.4",
"@angular/router": "^19.0.4",
"@angular/compiler-cli": "^19.0.4",
"@dotenv-run/core": "workspace:^1.3.6",
"@dotenv-run/jest-angular": "workspace:^0.2.0",
"jest-preset-angular": "^14.0.0",
"@jest/transform": "^29.7.0",
"@ngx-env/builder": "workspace:^19.0.2",
"@ngx-env/builder": "workspace:^19.0.3",
"@types/express": "^4.17.21",
"@types/jasmine": "~5.1.4",
"@types/node": "^18.19.54",
Expand Down
4 changes: 1 addition & 3 deletions examples/nx-workspace/apps/ng-app-cli/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const jestConfig = {
export default {
preset: 'jest-preset-angular/presets/defaults-esm',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
cache: false,
Expand All @@ -18,5 +18,3 @@ const jestConfig = {
],
},
};

export default jestConfig;
Loading

0 comments on commit 52afdbe

Please sign in to comment.