Skip to content

Commit

Permalink
feat: add Angular 15 support
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte committed Dec 9, 2022
1 parent f85e3bf commit ac698d3
Show file tree
Hide file tree
Showing 5 changed files with 514 additions and 476 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"build:demo": "ng build ngx-sweetalert2-demo",
"build:copy-files": "cp README.md dist/ngx-sweetalert2 && cp LICENSE.txt dist/ngx-sweetalert2",
"test": "run-p test:*",
"test:lib": "ng test ngx-sweetalert2",
"test:demo": "ng test ngx-sweetalert2-demo",
"test:lib": "ng test ngx-sweetalert2 --include=projects/ngx-sweetalert2/src/lib/swal.component.spec.ts",
"test:demo": "ng test ngx-sweetalert2-demo --include=projects/ngx-sweetalert2-demo/src/app/app.component.spec.ts",
"lint": "run-s lint:*",
"lint:lib": "ng lint ngx-sweetalert2",
"lint:demo": "ng lint ngx-sweetalert2-demo",
Expand Down
6 changes: 0 additions & 6 deletions projects/ngx-sweetalert2-demo/src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,3 @@ declare const require: any;
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
});

//=> Then we find all the tests
const context = require.context('./', true, /\.spec\.ts$/);

//=> And load the modules
context.keys().map(context);
4 changes: 2 additions & 2 deletions projects/ngx-sweetalert2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"tslib": "^2.0.0"
},
"peerDependencies": {
"@angular/common": "^15.0.0",
"@angular/core": "^15.0.0",
"@angular/common": "^14.0.0 || ^15.0.0",
"@angular/core": "^14.0.0 || ^15.0.0",
"sweetalert2": "^11.0.0"
}
}
6 changes: 0 additions & 6 deletions projects/ngx-sweetalert2/src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,3 @@ declare const require: any;
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
});

//=> Then we find all the tests
const context = require.context('./', true, /\.spec\.ts$/);

//=> And load the modules
context.keys().map(context);
Loading

0 comments on commit ac698d3

Please sign in to comment.