Commit b328090 1 parent de67b4e commit b328090 Copy full SHA for b328090
File tree 2 files changed +9
-2
lines changed
packages/fuels/test/features
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 118
118
"vite-plugin-json5" : " 1.1.2" ,
119
119
"vite-plugin-node-polyfills" : " 0.22.0" ,
120
120
"vite-plugin-plain-text" : " 1.4.2" ,
121
- "vitest" : " 2.0.5" ,
122
- "fuels" : " workspace:*"
121
+ "vitest" : " 2.0.5"
123
122
},
124
123
"pnpm" : {
125
124
"overrides" : {
Original file line number Diff line number Diff line change 1
1
import { deferPromise } from '@fuel-ts/account' ;
2
2
import { spawn } from 'child_process' ;
3
3
import * as chokidar from 'chokidar' ;
4
+ import { join } from 'path' ;
5
+ import { cwd } from 'process' ;
4
6
5
7
import * as buildMod from '../../src/cli/commands/build/index' ;
6
8
import * as deployMod from '../../src/cli/commands/deploy/index' ;
@@ -92,6 +94,12 @@ describe('dev', () => {
92
94
93
95
const devProcess = spawn ( `pnpm fuels dev --path ${ paths . root } ` , {
94
96
shell : 'bash' ,
97
+ /**
98
+ * pnpm fuels dev fails because the test is run in the root directory
99
+ * and there is no `fuels` dependency in `package.json` there,
100
+ * so we have to give the spawn a cwd which has `fuels` as a dependency.
101
+ */
102
+ cwd : join ( cwd ( ) , 'packages/fuel-gauge' ) ,
95
103
} ) ;
96
104
97
105
const nodeLaunched = deferPromise < string > ( ) ;
You can’t perform that action at this time.
0 commit comments