@@ -21,7 +21,7 @@ import { names } from '@nx/devkit';
2121export function testApplicationBasicBehavior ( generator : 'app' | 'preset' ) {
2222 const isPreset = generator === 'preset' ;
2323 const appPathPrefix = isPreset ? 'apps/' : '' ;
24- const libPathPrefix = isPreset ? 'libs/' : '' ;
24+ const libPathPrefix = '' ;
2525 const devServerPort = 4212 ;
2626 const previewServerPort = 4232 ;
2727 describe ( `Basic behavior with ${ generator } generator` , ( ) => {
@@ -77,7 +77,7 @@ export function testApplicationBasicBehavior(generator: 'app' | 'preset') {
7777 'should create qwik-nx' ,
7878 async ( ) => {
7979 const result = await runNxCommandAsync ( `build ${ project } ` ) ;
80- expect ( result . stdout ) . toContain (
80+ expect ( stripConsoleColors ( result . stdout ) ) . toContain (
8181 `Running type check for the "${ project } "..`
8282 ) ;
8383 expect (
@@ -91,7 +91,7 @@ export function testApplicationBasicBehavior(generator: 'app' | 'preset') {
9191 . join ( '' )
9292 . replace ( / \n | \s / g, '' )
9393 ) ;
94- expect ( result . stdout ) . toContain (
94+ expect ( stripConsoleColors ( result . stdout ) ) . toContain (
9595 `Successfully ran target build for project ${ project } `
9696 ) ;
9797 expect ( ( ) =>
@@ -167,7 +167,7 @@ export function testApplicationBasicBehavior(generator: 'app' | 'preset') {
167167 'unit tests should pass in the created app' ,
168168 async ( ) => {
169169 const result = await runNxCommandAsync ( `test ${ project } ` ) ;
170- expect ( result . stdout ) . toContain (
170+ expect ( stripConsoleColors ( result . stdout ) ) . toContain (
171171 `Successfully ran target test for project ${ project } `
172172 ) ;
173173 } ,
@@ -186,7 +186,7 @@ export function testApplicationBasicBehavior(generator: 'app' | 'preset') {
186186 const result = await runNxCommandAsync ( `test ${ project } ` , {
187187 silenceError : true ,
188188 } ) ;
189- expect ( result . stdout ) . toContain (
189+ expect ( stripConsoleColors ( result . stdout ) ) . toContain (
190190 `Running target test for project ${ project } failed`
191191 ) ;
192192 } ,
@@ -211,7 +211,7 @@ export function testApplicationBasicBehavior(generator: 'app' | 'preset') {
211211 . join ( '' )
212212 . replace ( / \n | \s / g, '' )
213213 ) ;
214- expect ( result . stdout ) . toContain (
214+ expect ( stripConsoleColors ( result . stdout ) ) . toContain (
215215 `Successfully ran target build for project ${ project } `
216216 ) ;
217217 } ,
0 commit comments