File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { inspect } from 'node:util';
66import { NxJsonConfiguration , readJsonFile , writeJsonFile } from '@nx/devkit' ;
77
88import type { NodeSeaPluginOptions , NodeSeaOptions } from 'nx-node-sea' ;
9+ import { platform } from 'node:process' ;
910
1011describe ( 'nx-node-sea' , ( ) => {
1112 let projectDirectory : string ;
@@ -60,7 +61,7 @@ describe('nx-node-sea', () => {
6061 const outputDirectory = join ( projectDirectory , dirname ( seaConfig . output ) ) ;
6162 const files = readdirSync ( outputDirectory ) ;
6263 expect ( files ) . toContain ( basename ( seaConfig . output ) ) ;
63- expect ( files ) . toContain ( expect . stringContaining ( ' node') ) ;
64+ expect ( files ) . toContain ( platform === 'win32' ? 'node.exe' : ' node') ;
6465 } , 45_000 ) ;
6566
6667 it . todo ( 'should run the SEA' ) ;
You can’t perform that action at this time.
0 commit comments