diff --git a/package-lock.json b/package-lock.json index b33e7fd..ec33c6b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21994,7 +21994,7 @@ }, "packages/flow-cadut": { "name": "@onflow/flow-cadut", - "version": "0.2.0-alpha.8", + "version": "0.2.0-alpha.9", "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.18.6", @@ -22018,11 +22018,11 @@ }, "packages/flow-cadut-generator": { "name": "@onflow/flow-cadut-generator", - "version": "0.0.1", + "version": "0.1.0-alpha.0", "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.18.6", - "@onflow/flow-cadut": "^0.2.0-alpha.8", + "@onflow/flow-cadut": "^0.2.0-alpha.9", "chokidar": "^3.5.3", "glob": "^8.0.3", "inquirer": "^8.2.4", @@ -23340,7 +23340,7 @@ }, "devDependencies": { "@onflow/fcl": "^0.0.73", - "@onflow/flow-cadut-generator": "^0.0.1", + "@onflow/flow-cadut-generator": "^0.1.0-alpha.0", "elliptic": "^6.5.4", "esm": "^3.2.25", "rlp": "^2.2.6", @@ -28217,7 +28217,7 @@ "requires": { "@babel/runtime": "^7.18.6", "@onflow/fcl-bundle": "^1.1.0", - "@onflow/flow-cadut": "^0.2.0-alpha.8", + "@onflow/flow-cadut": "^0.2.0-alpha.9", "chokidar": "^3.5.3", "glob": "^8.0.3", "inquirer": "^8.2.4", @@ -32143,7 +32143,7 @@ "requires": { "@onflow/fcl": "^0.0.73", "@onflow/fcl-config": "^0.0.1", - "@onflow/flow-cadut-generator": "^0.0.1", + "@onflow/flow-cadut-generator": "^0.1.0-alpha.0", "elliptic": "^6.5.4", "esm": "^3.2.25", "rlp": "^2.2.6", diff --git a/package.json b/package.json index 0d9ec84..ee08b57 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "flow-cadut", "scripts": { "build": "lerna run build", - "test": "jest", + "test": "lerna run test", "lint": "eslint .", "lintfix": "eslint --fix .", "prerelease": "npm run build && npm run test", diff --git a/packages/dev-test/package.json b/packages/dev-test/package.json index 8bd65a4..849f79b 100644 --- a/packages/dev-test/package.json +++ b/packages/dev-test/package.json @@ -5,7 +5,7 @@ "description": "", "main": "index.js", "scripts": { - "test": "jest" + "test": "jest --runInBand" }, "keywords": [], "author": "", diff --git a/packages/flow-cadut-plugin-find/src/const.js b/packages/flow-cadut-plugin-find/src/const.js index 6667761..18fd2b3 100644 --- a/packages/flow-cadut-plugin-find/src/const.js +++ b/packages/flow-cadut-plugin-find/src/const.js @@ -1,5 +1,5 @@ export const contractHolder = { emulator: null, - testnet: "0xa16ab1d0abde3625", + testnet: "0x35717efbbce11c74", mainnet: "0x097bafa4e0b48eef", } diff --git a/packages/flow-cadut-plugin-find/tests/index.test.js b/packages/flow-cadut-plugin-find/tests/index.test.js index 26a884d..e6ff424 100644 --- a/packages/flow-cadut-plugin-find/tests/index.test.js +++ b/packages/flow-cadut-plugin-find/tests/index.test.js @@ -17,8 +17,9 @@ describe("FIND plugin", () => { return address } ` - const args = ["find:shiny"] - return mapValuesToCode(code, args) + const args = ["find:bman"] + const [result] = await mapValuesToCode(code, args) + expect(result.value).toBe("0x8bf9ecc3a2b8d7af") }) it("shall resolve name.find properly", async () => { @@ -27,7 +28,8 @@ describe("FIND plugin", () => { return address } ` - const args = ["shiny.find"] - return mapValuesToCode(code, args) + const args = ["bman.find"] + const [result] = await mapValuesToCode(code, args) + expect(result.value).toBe("0x8bf9ecc3a2b8d7af") }) }) diff --git a/packages/flow-cadut-views/src/test/try-views.test.js b/packages/flow-cadut-views/src/test/try-views.test.js index c0d9097..597fa83 100644 --- a/packages/flow-cadut-views/src/test/try-views.test.js +++ b/packages/flow-cadut-views/src/test/try-views.test.js @@ -2,7 +2,6 @@ import {setEnvironment} from "@onflow/flow-cadut" import { Flovatars, VersusArt, - MotoGP, Ballerz, GoatedGoats, GoatedTraits, @@ -25,14 +24,6 @@ describe("views", () => { expect(err).toBeNull() }) - it("fetch motogp", async () => { - await setEnvironment("mainnet") - const [cards, err] = await getView(MotoGP, "0x53f389d96fb4ce5e") - console.log(err) - expect(cards).toBeTruthy() - expect(err).toBeNull() - }) - it("fetch ballerz", async () => { await setEnvironment("mainnet") const [ballerz, err] = await getView(Ballerz, "0x4c342b6dafb5bcb1") diff --git a/packages/generator-test/package.json b/packages/generator-test/package.json index aa42be1..ba3c29c 100644 --- a/packages/generator-test/package.json +++ b/packages/generator-test/package.json @@ -6,7 +6,7 @@ "main": "index.js", "scripts": { "generate": "flow-generate ./cadence ./src/generated", - "test": "node index.js" + "test-generator": "node index.js" }, "author": "", "license": "ISC",