File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11import '@angular/compiler' ;
22import { defineConfig , devices } from '@playwright/test' ;
33import { withTestronautAngular } from '@testronaut/angular' ;
4+ import { delimiter } from 'node:path' ;
45
56/**
67 * See https://playwright.dev/docs/test-configuration.
78 */
9+ const projectName = __dirname . split ( delimiter ) . pop ( ) ;
810export default defineConfig (
911 withTestronautAngular ( {
1012 configPath : __filename ,
1113 testServer : {
12- command :
13- 'nx serve 601-testronaut-solution --configuration testronaut --port {port}' ,
14+ command : `nx serve ${ projectName } --configuration testronaut --port {port}` ,
1415 } ,
1516 } ) ,
1617 {
Original file line number Diff line number Diff line change 11import '@angular/compiler' ;
22import { defineConfig , devices } from '@playwright/test' ;
33import { withTestronautAngular } from '@testronaut/angular' ;
4+ import { delimiter } from 'node:path' ;
45
56/**
67 * See https://playwright.dev/docs/test-configuration.
78 */
9+ const projectName = __dirname . split ( delimiter ) . pop ( ) ;
810export default defineConfig (
911 withTestronautAngular ( {
1012 configPath : __filename ,
1113 testServer : {
12- command :
13- 'nx serve 601-testronaut-solution --configuration testronaut --port {port}' ,
14+ command : `nx serve ${ projectName } --configuration testronaut --port {port}` ,
1415 } ,
1516 } ) ,
1617 {
You can’t perform that action at this time.
0 commit comments