@@ -21,6 +21,7 @@ import {
21
21
uploadModule
22
22
} from '../internal/builtins' ;
23
23
import { dev } from "@fluencelabs/fluence-network-environment" ;
24
+ import { ModuleConfig , Wasi } from "../internal/moduleConfig" ;
24
25
25
26
const devNodeAddress = '/dns4/dev.fluence.dev/tcp/19001/wss/p2p/12D3KooWEXNUbCXooUwHrHBbrmjsrpHXoEphPwbjQXEGyzbqKnE9' ;
26
27
const devNodePeerId = '12D3KooWEXNUbCXooUwHrHBbrmjsrpHXoEphPwbjQXEGyzbqKnE9' ;
@@ -250,15 +251,27 @@ describe('Typescript usage suite', () => {
250
251
expect ( bpList ) . not . to . be . undefined ;
251
252
} ) ;
252
253
253
- it . skip ( "upload_modules" , async function ( ) {
254
+ it ( "upload_modules" , async function ( ) {
254
255
this . timeout ( 30000 ) ;
255
256
const client = await createConnectedClient ( dev [ 2 ] . multiaddr ) ;
256
257
257
258
console . log ( "peerid: " + client . selfPeerId )
258
259
260
+ let config : ModuleConfig = {
261
+ name : "test_broken_module" ,
262
+ mem_pages_count : 100 ,
263
+ logger_enabled : true ,
264
+ wasi : {
265
+ envs : { a : "b" } ,
266
+ preopened_files : [ "a" , "b" ] ,
267
+ mapped_dirs : { c : "d" } ,
268
+ } ,
269
+ mounted_binaries : { e : "f" }
270
+ }
271
+
259
272
let base64 = "MjNy"
260
273
261
- await uploadModule ( client , "test_broken_module" , base64 ) ;
274
+ await uploadModule ( client , "test_broken_module" , base64 , config ) ;
262
275
} ) ;
263
276
264
277
it . skip ( "add_blueprint" , async function ( ) {
0 commit comments