@@ -13,8 +13,7 @@ import { BrowserBuilderOutput } from '../../src/browser';
13
13
import { createArchitect , host , veEnabled } from '../utils' ;
14
14
15
15
16
- // DISABLED_FOR_IVY These should pass but are currently not supported
17
- ( veEnabled ? describe : xdescribe ) ( 'Server Builder' , ( ) => {
16
+ describe ( 'Server Builder' , ( ) => {
18
17
const target = { project : 'app' , target : 'server' } ;
19
18
let architect : Architect ;
20
19
@@ -33,7 +32,12 @@ import { createArchitect, host, veEnabled } from '../utils';
33
32
34
33
const fileName = join ( outputPath , 'main.js' ) ;
35
34
const content = virtualFs . fileBufferToString ( host . scopedSync ( ) . read ( normalize ( fileName ) ) ) ;
36
- expect ( content ) . toMatch ( / A p p S e r v e r M o d u l e N g F a c t o r y / ) ;
35
+
36
+ if ( veEnabled ) {
37
+ expect ( content ) . toMatch ( / A p p S e r v e r M o d u l e N g F a c t o r y / ) ;
38
+ } else {
39
+ expect ( content ) . toMatch ( / A p p S e r v e r M o d u l e \. n g M o d u l e D e f / ) ;
40
+ }
37
41
38
42
await run . stop ( ) ;
39
43
} ) ;
@@ -68,16 +72,10 @@ import { createArchitect, host, veEnabled } from '../utils';
68
72
69
73
it ( 'supports sourcemaps' , async ( ) => {
70
74
const overrides = { sourceMap : true } ;
71
-
72
75
const run = await architect . scheduleTarget ( target , overrides ) ;
73
76
const output = await run . result as BrowserBuilderOutput ;
74
77
expect ( output . success ) . toBe ( true ) ;
75
-
76
- const fileName = join ( outputPath , 'main.js' ) ;
77
- const content = virtualFs . fileBufferToString ( host . scopedSync ( ) . read ( normalize ( fileName ) ) ) ;
78
- expect ( content ) . toMatch ( / A p p S e r v e r M o d u l e N g F a c t o r y / ) ;
79
78
expect ( host . scopedSync ( ) . exists ( join ( outputPath , 'main.js.map' ) ) ) . toBeTruthy ( ) ;
80
-
81
79
await run . stop ( ) ;
82
80
} ) ;
83
81
@@ -144,7 +142,11 @@ import { createArchitect, host, veEnabled } from '../utils';
144
142
145
143
const fileName = join ( outputPath , 'main.js' ) ;
146
144
const content = virtualFs . fileBufferToString ( host . scopedSync ( ) . read ( normalize ( fileName ) ) ) ;
147
- expect ( content ) . toMatch ( / A p p S e r v e r M o d u l e N g F a c t o r y / ) ;
145
+ if ( veEnabled ) {
146
+ expect ( content ) . toMatch ( / A p p S e r v e r M o d u l e N g F a c t o r y / ) ;
147
+ } else {
148
+ expect ( content ) . toMatch ( / A p p S e r v e r M o d u l e \. n g M o d u l e D e f / ) ;
149
+ }
148
150
} ) ,
149
151
take ( 1 ) ,
150
152
) . toPromise ( ) ;
0 commit comments