8000 refactor(platform-server): deprecate the testing entry point (#60915) · angular/angular@2240a21 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2240a21

Browse files
jkremspkozlowski-opensource
authored andcommitted
refactor(platform-server): deprecate the testing entry point (#60915)
DEPRECATED: `@angular/platform-server/testing` Use e2e tests to verify SSR behavior instead. PR Close #60915
1 parent 619291b commit 2240a21

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

goldens/public-api/platform-server/testing/index.api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import * as i0 from '@angular/core';
88
import * as i1 from '@angular/platform-browser-dynamic/testing';
99
import { StaticProvider } from '@angular/core';
1010

11-
// @public
11+
// @public @deprecated
1212
export const platformServerTesting: (extraProviders?: StaticProvider[]) => i0.PlatformRef;
1313

14-
// @public
14+
// @public @deprecated
1515
export class ServerTestingModule {
1616
// (undocumented)
1717
static ɵfac: i0.ɵɵFactoryDeclaration<ServerTestingModule, never>;
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
Supplies a testing module for the Angular platform server subsystem.
1+
Supplies a testing module for the Angular platform server subsystem.
2+
This secondary entry point is deprecated. Use e2e tests to verify SSR
3+
behavior instead of `TestBed`.
4+
5+
See [Angular deprecation policy](reference/releases#deprecation-policy).

packages/platform-server/testing/src/server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const INTERNAL_SERVER_DYNAMIC_PLATFORM_TESTING_PROVIDERS: StaticProvider[] = [
2323
* Platform for testing
2424
*
2525
* @publicApi
26+
* @deprecated from v20.0.0, use e2e testing to verify SSR behavior.
2627
*/
2728
export const platformServerTesting = createPlatformFactory(
2829
platformCore,
@@ -34,6 +35,7 @@ export const platformServerTesting = createPlatformFactory(
3435
* NgModule for testing.
3536
*
3637
* @publicApi
38+
* @deprecated from v20.0.0, use e2e testing to verify SSR behavior.
3739
*/
3840
@NgModule({
3941
exports: [BrowserDynamicTestingModule],

0 commit comments

Comments
 (0)
0