@@ -21,7 +21,7 @@ import { names } from '@nx/devkit';
21
21
export function testApplicationBasicBehavior ( generator : 'app' | 'preset' ) {
22
22
const isPreset = generator === 'preset' ;
23
23
const appPathPrefix = isPreset ? 'apps/' : '' ;
24
- const libPathPrefix = isPreset ? 'libs/' : '' ;
24
+ const libPathPrefix = '' ;
25
25
const devServerPort = 4212 ;
26
26
const previewServerPort = 4232 ;
27
27
describe ( `Basic behavior with ${ generator } generator` , ( ) => {
@@ -77,7 +77,7 @@ export function testApplicationBasicBehavior(generator: 'app' | 'preset') {
77
77
'should create qwik-nx' ,
78
78
async ( ) => {
79
79
const result = await runNxCommandAsync ( `build ${ project } ` ) ;
80
- expect ( result . stdout ) . toContain (
80
+ expect ( stripConsoleColors ( result . stdout ) ) . toContain (
81
81
`Running type check for the "${ project } "..`
82
82
) ;
83
83
expect (
@@ -91,7 +91,7 @@ export function testApplicationBasicBehavior(generator: 'app' | 'preset') {
91
91
. join ( '' )
92
92
. replace ( / \n | \s / g, '' )
93
93
) ;
94
- expect ( result . stdout ) . toContain (
94
+ expect ( stripConsoleColors ( result . stdout ) ) . toContain (
95
95
`Successfully ran target build for project ${ project } `
96
96
) ;
97
97
expect ( ( ) =>
@@ -167,7 +167,7 @@ export function testApplicationBasicBehavior(generator: 'app' | 'preset') {
167
167
'unit tests should pass in the created app' ,
168
168
async ( ) => {
169
169
const result = await runNxCommandAsync ( `test ${ project } ` ) ;
170
- expect ( result . stdout ) . toContain (
170
+ expect ( stripConsoleColors ( result . stdout ) ) . toContain (
171
171
`Successfully ran target test for project ${ project } `
172
172
) ;
173
173
} ,
@@ -186,7 +186,7 @@ export function testApplicationBasicBehavior(generator: 'app' | 'preset') {
186
186
const result = await runNxCommandAsync ( `test ${ project } ` , {
187
187
silenceError : true ,
188
188
} ) ;
189
- expect ( result . stdout ) . toContain (
189
+ expect ( stripConsoleColors ( result . stdout ) ) . toContain (
190
190
`Running target test for project ${ project } failed`
191
191
) ;
192
192
} ,
@@ -211,7 +211,7 @@ export function testApplicationBasicBehavior(generator: 'app' | 'preset') {
211
211
. join ( '' )
212
212
. replace ( / \n | \s / g, '' )
213
213
) ;
214
- expect ( result . stdout ) . toContain (
214
+ expect ( stripConsoleColors ( result . stdout ) ) . toContain (
215
215
`Successfully ran target build for project ${ project } `
216
216
) ;
217
217
} ,
0 commit comments