File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
packages/nx-plugin/src/utils/testing-utils Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -73,14 +73,12 @@ describe('Nx Plugin', () => {
73
73
// doesn't use the collection we are building
74
74
// we should change it to point to the right collection using relative path
75
75
// TODO: Re-enable this to work with pnpm
76
- xit ( `should run the plugin's e2e tests` , async ( ) => {
77
- if ( isNotWindows ( ) ) {
78
- const plugin = uniq ( 'plugin-name' ) ;
79
- runCLI ( `generate @nrwl/nx-plugin:plugin ${ plugin } --linter=eslint` ) ;
80
- const e2eResults = runCLI ( `e2e ${ plugin } -e2e` ) ;
81
- expect ( e2eResults ) . toContain ( 'Successfully ran target e2e' ) ;
82
- expect ( await killPorts ( ) ) . toBeTruthy ( ) ;
83
- }
76
+ it ( `should run the plugin's e2e tests` , async ( ) => {
77
+ const plugin = uniq ( 'plugin-name' ) ;
78
+ runCLI ( `generate @nrwl/nx-plugin:plugin ${ plugin } --linter=eslint` ) ;
79
+ const e2eResults = runCLI ( `e2e ${ plugin } -e2e` ) ;
80
+ expect ( e2eResults ) . toContain ( 'Successfully ran target e2e' ) ;
81
+ expect ( await killPorts ( ) ) . toBeTruthy ( ) ;
84
82
} , 250000 ) ;
85
83
86
84
it ( 'should be able to generate a migration' , async ( ) => {
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export function runNxCommandAsync(
43
43
silenceError : false ,
44
44
}
45
45
) : Promise < { stdout : string ; stderr : string } > {
46
- if ( fileExists ( 'package.json' ) ) {
46
+ if ( fileExists ( tmpProjPath ( 'package.json' ) ) ) {
47
47
const pmc = getPackageManagerCommand ( ) ;
48
48
return runCommandAsync ( `${ pmc . exec } nx ${ command } ` , opts ) ;
49
49
} else if ( process . platform === 'win32' ) {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export function runNxCommand(
21
21
cwd : tmpProjPath ( ) ,
22
22
env : { ...process . env , ...opts . env } ,
23
23
} ;
24
- if ( fileExists ( 'package.json' ) ) {
24
+ if ( fileExists ( tmpProjPath ( 'package.json' ) ) ) {
25
25
const pmc = getPackageManagerCommand ( ) ;
26
26
return execSync ( `${ pmc . exec } nx ${ command } ` , execSyncOptions ) ;
27
27
} else if ( process . platform === 'win32' ) {
You can’t perform that action at this time.
0 commit comments