Skip to content

Commit

Permalink
feat(cli): implement package downloader and custom errors modules (#490)
Browse files Browse the repository at this point in the history
Signed-off-by: Lenin Mehedy <[email protected]>
  • Loading branch information
leninmehedy authored Nov 6, 2023
1 parent 16988e4 commit 8c143e9
Show file tree
Hide file tree
Showing 17 changed files with 686 additions and 74 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/zxc-compile-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ jobs:
id: nodejs-test
working-directory: fullstack-network-manager
if: ${{ inputs.enable-nodejs-tests && !cancelled() && !failure() }}
run:
npm i && NODE_OPTIONS=--experimental-vm-modules npm test --coverage
run: |
npm i
npm test
npm run test-e2e
# This step tests the Helm chart direct mode of operation which uses the ubi8-init-java17 image.
- name: Helm Chart Test (Direct Install)
Expand Down
23 changes: 12 additions & 11 deletions fullstack-network-manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,26 @@ Select a command
- In order to support ES6 modules with `jest`, set an env variable `export NODE_OPTIONS=--experimental-vm-modules >> ~/.zshrc`
- If you are using Intellij and would like to use debugger tools, you will need to enable `--experimental-vm-modules` for `Jest`.
- `Run->Edit Configurations->Edit Configuration Templates->Jest` and then set `--experimental-vm-modules` in `Node Options`.
- Run `npm test` to run the tests
- Run `npm i` to install the required packages
- Run `npm link` to install `fsnetman` as the CLI (you need to do it once)
- Run `npm test` or `npm run test` to run the unit tests
- Run `npm run test-e2e` to run the long-running integration tests
- Run `npm run fsnetman` to access the CLI as shown below:
```
❯ npm run fsnetman
> @hashgraph/[email protected] fsnetman
> NODE_OPTIONS=--experimental-vm-modules node fsnetman.mjs
Usage: fsnetman.mjs <command> [options]
Usage:
fsnetman <command> [options]
Commands:
fsnetman.mjs init Perform dependency checks and initialize local environme
nt
fsnetman.mjs cluster Manager FST cluster
fsnetman init Perform dependency checks and initialize local environment
fsnetman cluster Manage FST cluster
fsnetman chart Manage FST chart deployment
Options:
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Select a command
```

Loading

0 comments on commit 8c143e9

Please sign in to comment.