@angular/platform-server
Version:
Angular - library for using Angular in Node.js
47 lines (43 loc) • 2 kB
JavaScript
/**
* @license Angular v20.1.0
* (c) 2010-2025 Google LLC. https://angular.io/
* License: MIT
*/
import * as i0 from '@angular/core';
import { createPlatformFactory, platformCore, NgModule } from '@angular/core';
import { BrowserDynamicTestingModule } from '@angular/platform-browser-dynamic/testing';
import { SERVER_RENDER_PROVIDERS, INTERNAL_SERVER_PLATFORM_PROVIDERS } from './server.mjs';
import '@angular/common';
import '@angular/platform-browser';
import '@angular/common/http';
import 'rxjs';
const INTERNAL_SERVER_DYNAMIC_PLATFORM_TESTING_PROVIDERS = [
...INTERNAL_SERVER_PLATFORM_PROVIDERS,
];
/**
* Platform for testing
*
* @publicApi
* @deprecated from v20.0.0, use e2e testing to verify SSR behavior.
*/
const platformServerTesting = createPlatformFactory(platformCore, 'serverTesting', INTERNAL_SERVER_DYNAMIC_PLATFORM_TESTING_PROVIDERS);
/**
* NgModule for testing.
*
* @publicApi
* @deprecated from v20.0.0, use e2e testing to verify SSR behavior.
*/
class ServerTestingModule {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ServerTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: ServerTestingModule, exports: [BrowserDynamicTestingModule] });
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ServerTestingModule, providers: SERVER_RENDER_PROVIDERS, imports: [BrowserDynamicTestingModule] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ServerTestingModule, decorators: [{
type: NgModule,
args: [{
exports: [BrowserDynamicTestingModule],
providers: SERVER_RENDER_PROVIDERS,
}]
}] });
export { ServerTestingModule, platformServerTesting };
//# sourceMappingURL=testing.mjs.map