difftreelog
Create donors for seqtest and change test scripts
in: master
3 files changed
tests/package.jsondiffbeforeafterboth--- a/tests/package.json
+++ b/tests/package.json
@@ -27,8 +27,10 @@
"lint": "eslint --ext .ts,.js src/",
"fix": "eslint --ext .ts,.js src/ --fix",
- "test": "mocha --parallel --timeout 9999999 -r ts-node/register './src/**/*.test.ts'",
+ "test": "npm run testParallel && npm run testSequential",
+ "testParallel": "mocha --parallel --timeout 9999999 -r ts-node/register './src/**/*.test.ts'",
"testSequential": "mocha --timeout 9999999 -r ts-node/register './src/**/*.seqtest.ts'",
+ "testDevnode": "mocha --timeout 9999999 -r ts-node/register './src/**/*test.ts'",
"testStructure": "mocha --parallel --timeout 9999999 -r ts-node/register ./**/nesting/**.test.ts",
"testEth": "mocha --parallel --timeout 9999999 -r ts-node/register './**/eth/**/*.test.ts'",
"testEthNesting": "mocha --parallel --timeout 9999999 -r ts-node/register './**/eth/nesting/**/*.test.ts'",
tests/src/deprecated-helpers/helpers.tsdiffbeforeafterboth--- a/tests/src/deprecated-helpers/helpers.ts
+++ b/tests/src/deprecated-helpers/helpers.ts
@@ -1764,11 +1764,11 @@
return (await api.rpc.unique.collectionById(collectionId)).unwrap();
}
-/*export const describe_xcm = (
+export const describe_xcm = (
process.env.RUN_XCM_TESTS
? describe
: describe.skip
-);*/
+);
export async function waitNewBlocks(blocksCount = 1): Promise<void> {
await usingApi(async (api) => {
tests/src/util/playgrounds/globalSetup.tsdiffbeforeafterboth63 let batchBalanceGrantedCounter = 0;63 let batchBalanceGrantedCounter = 0;64 for (let i = 0; batchBalanceGrantedCounter < batchSize && b + i < filenames.length; i++) {64 for (let i = 0; batchBalanceGrantedCounter < batchSize && b + i < filenames.length; i++) {65 const f = filenames[b + i];65 const f = filenames[b + i];66 if (!f.endsWith('.test.ts') || f.includes('.outdated')) continue;66 if (!f.endsWith('.test.ts') && !f.endsWith('seqtest.ts') || f.includes('.outdated')) continue;67 const account = await privateKey({filename: f, ignoreFundsPresence: true});67 const account = await privateKey({filename: f, ignoreFundsPresence: true});68 const aliceBalance = await helper.balance.getSubstrate(account.address);68 const aliceBalance = await helper.balance.getSubstrate(account.address);6969