Conversation
| // Tests | ||
| const TESTS = (api: ApiPromise): Extrinsic[] => [ | ||
| { | ||
| pallet: "assetIndex", | ||
| call: "addAsset", | ||
| args: [ | ||
| 42, | ||
| 1000000, | ||
| api.createType("AssetAvailability" as any), | ||
| 1000000, | ||
| ], | ||
| }, | ||
| ]; |
There was a problem hiding this comment.
We can configure our api tests here in the future
mattsse
left a comment
There was a problem hiding this comment.
This looks great, I'm just hesitant to add polkadot-launch as a submodule, can we use this as node_module instead?
| [submodule "js/polkadot-launch"] | ||
| path = js/polkadot-launch | ||
| url = https://github.com/paritytech/polkadot-launch.git |
There was a problem hiding this comment.
Do we really need this as a submodule?
| * @returns {Promise<ChildProcess>} | ||
| */ | ||
| export async function local(stdio?: StdioOptions): Promise<ChildProcess> { | ||
| return fork("js/polkadot-launch", ["config.json"], { |
There was a problem hiding this comment.
can't we youse polkadot-lauch directly?
There was a problem hiding this comment.
- The npm package of
polkadot-launchis outdated - If we use git url as a dependency
- The git repo of
polkadot-launchis really big ( over 200MB ), because it contains binaries in its git history
- The git repo of
There was a problem hiding this comment.
that's unfortunate. But as submodule we'd have to check it out anyways, so using the repo directly in package.json makes more sense to me
There was a problem hiding this comment.
I tried using polkadot-launch as a dependency before, and npm hardly can fetch polkadot-launch on my machine, let me try it on CI
There was a problem hiding this comment.
| @@ -0,0 +1,165 @@ | |||
| GNU LESSER GENERAL PUBLIC LICENSE | |||
There was a problem hiding this comment.
symlink instead ln -s ../../LICENSE ?
There was a problem hiding this comment.
if we use ln -s ../../LICENSE, it will be
$ cat LICENSE
cat: LICENSE: Too many levels of symbolic links
There was a problem hiding this comment.
hmm is there a loop somewhere.
nvm, let's just copy it then
There was a problem hiding this comment.
| [submodule "js/polkadot-launch"] | ||
| path = js/polkadot-launch | ||
| url = https://github.com/paritytech/polkadot-launch.git |
There was a problem hiding this comment.
This is obsolete now, right? since we checkout during build?
There was a problem hiding this comment.
This still exists QAQ,
We could not avoid using the submodule in the current state I think, because the CI can not fetch this repo as well
There was a problem hiding this comment.
I see, guess we'd have to live with it for now.
There was a problem hiding this comment.
This is obsolete now, right? since we checkout during build?
OO, This will not be loaded into our directory unless we git submodule update --init
Changes
E2E tests for PINT, ref https://github.com/AcalaNetwork/Acala/blob/master/launch/src/index.js
Tests
Issues
Ref #81